Jump to content

what is the different between basename($_FILES['file... and $_FILES['file...


newrehmi

Recommended Posts

basename() http://us2.php.net/basename

returns the filename...

 

and like roopurt mentioned.. if $_FILES['file']['name'] contained a bunch of slashes... using basename would take those out and only return the filename..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.