mazman13 Posted February 7, 2007 Share Posted February 7, 2007 Is there a function to see if a file exists on a server? I know the file_exists function, but that doesn't seem to work when you try to find it on a server instead of a computer. Any ideas? Link to comment https://forums.phpfreaks.com/topic/37470-how-to-check-to-see-if-a-file-exists-on-a-server/ Share on other sites More sharing options...
Jessica Posted February 7, 2007 Share Posted February 7, 2007 A server is a computer. What is the problem? Post your code and any errors, etc. It's likely you have the path wrong or something. Link to comment https://forums.phpfreaks.com/topic/37470-how-to-check-to-see-if-a-file-exists-on-a-server/#findComment-179176 Share on other sites More sharing options...
trq Posted February 7, 2007 Share Posted February 7, 2007 file_exists() will work on a remote server if url_wrappers are switched on. If they are off, then there is no function that can help you out. Link to comment https://forums.phpfreaks.com/topic/37470-how-to-check-to-see-if-a-file-exists-on-a-server/#findComment-179177 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.