hello, i have a problem that how can i find a specific file extension exist in the server for example my domain is http://shams.com and i want to know that a file or directory say test.php exist or not(ie http://shams.com/test.php exist) plz help me i want a fast searching plz if possible give one example thanks shams
how bout if(file_exists($filename)){yadda} that quick enough?...🙂 This function will not work on remote files; the file to be examined must be accessible via the server's filesystem. (from the manual)
Hope this helps Darren
no i want to check the files from a url how this be possible
You can only do that by opening the file. You have to request it from the remote server. This is very slow and should only be used if you absolutely require it (and you usually don't)
A forum, a FAQ, what else do you need?