kpetsche20 Posted September 19, 2008 Share Posted September 19, 2008 How do I check if a image is already uploaded to the sever for a image upload script? I'm currently using fopen, but whenever a file doesn't exist on the server it spits errors. Link to comment https://forums.phpfreaks.com/topic/124911-how-to-check-if-a-image-is-already-uploaded-to-a-server/ Share on other sites More sharing options...
GingerRobot Posted September 19, 2008 Share Posted September 19, 2008 file_exists()? Link to comment https://forums.phpfreaks.com/topic/124911-how-to-check-if-a-image-is-already-uploaded-to-a-server/#findComment-645448 Share on other sites More sharing options...
kpetsche20 Posted September 19, 2008 Author Share Posted September 19, 2008 Another question, How do I display the file names in a specific folder, for a File Manager script. Link to comment https://forums.phpfreaks.com/topic/124911-how-to-check-if-a-image-is-already-uploaded-to-a-server/#findComment-645453 Share on other sites More sharing options...
GingerRobot Posted September 19, 2008 Share Posted September 19, 2008 Newish version of php? glob() Rubbish older version? opendir() and readdir(). Link to comment https://forums.phpfreaks.com/topic/124911-how-to-check-if-a-image-is-already-uploaded-to-a-server/#findComment-645459 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.