Page 1 of 1

File_Exists Network Path

Posted: Tue Oct 18, 2005 10:05 am
by athare
I'm having problems with Verifying that a file exists on a LAN computer,

For some or other reason this doesn't work:

Code: Select all

file_exists("//computername/folder/file.ext"); //Returns FALSE even if the file DOES exist.
If tried all combos "//", "/", "\","\\"

If anyone can help, PLEASE! 8O

Posted: Tue Oct 18, 2005 11:04 am
by shiznatix
well php is in a folder and if you try to do

c:/windows/folder/\\COMPUTERNAME

you are obviously going to get a does not exist. put yourself in the root directory deal

Posted: Wed Oct 19, 2005 1:23 am
by athare
I should prob have also told you that i'm pretty new to PHP. :oops:
put yourself in the root directory deal
How do I do this?