php - check if files exists in folder on network/lan -
i want check if files exists in network folder (eg. path = "u:\abc\def\") using php.
i tried use following:
if(file_exists("u:/abc/def/400abc.doc")) { echo "yes"; } else { echo "no"; }
i no. tried path = "//abc-drive/folder-main/abc/def/400abc.doc" still doesn't work.
the files on network/shared folder , not in subfolders php server runs
can please tell help?
regards
this won't work if php has safe_mode enabled. try setting safe_mode_include_dir
add exception, , reference location syntax \\computername\share\filename
.
Comments
Post a Comment