Quick Search:
 
 PHP Code: Remote file_exist() Jump to:  
Category: >> PHP Code >> Remote file_exist()  

<< lastnext >>

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)));
}  
 
?>


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org