This article mainly introduces PHP's methods to determine whether a network file exists. The example analyzes php's skills in reading network files, which has some reference value. For more information, see
This article mainly introduces PHP's methods to determine whether a network file exists. The example analyzes php's skills in reading network files, which has some reference value. For more information, see
This example describes how to use PHP to determine whether a network file exists. Share it with you for your reference. The specific implementation method is as follows:
$ File = "http://www.jb51.net/demo/file_exists.zip"; $ fileExists = @ file_get_contents ($ file, null, null )? True: false; if ($ fileExists) {echo "File Exists! ";}Else {echo" Sorry, we couldn't find the file .";}
I hope this article will help you with php programming.
,