I have a url string like this:
http://example.com/sfm?dir=uploads/sfm/root/folder5/file.zip
echo $_GET['extract']
outputs this: uploads/sfm/root/folder5/file.zip
How can i strip the last file.zip so that
echo $_GET['extract']
outputs this: uploads/sfm/root/folder5/