Welcome Guest, Not a member yet? Register   Sign In
How to check if file exists via URL
#2

[eluser]Phil Sturgeon[/eluser]
file_exists() is a local-only function, cannot check remote servers. You can use fopen for that to see if it is able to open the file, then close it again.

There are plenty of functions for this around the net but most of them seem larger and slower than the simple fopen.


Messages In This Thread
How to check if file exists via URL - by El Forum - 10-30-2007, 09:45 PM
How to check if file exists via URL - by El Forum - 10-31-2007, 06:19 AM
How to check if file exists via URL - by El Forum - 10-31-2007, 07:59 AM
How to check if file exists via URL - by El Forum - 10-31-2007, 08:06 AM
How to check if file exists via URL - by El Forum - 10-31-2007, 08:11 AM
How to check if file exists via URL - by El Forum - 10-31-2007, 08:19 AM
How to check if file exists via URL - by El Forum - 10-31-2007, 02:01 PM
How to check if file exists via URL - by El Forum - 06-21-2010, 01:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB