 |
|
Snippet Name: Remote file_exist()
Description: Use this if you want to check if a remote file exists.
Comment: (none)
Language: PHP
Highlight Mode: PHP
Last Modified: February 27th, 2009
|
<?PHP
FUNCTION remote_file_exists($url){
RETURN (bool)PREG_MATCH('~HTTP/1\.\d\s+200\s+OK~', @CURRENT(get_headers($url)));
}
?> |
|
|
|
|
|