File_Exists Network Path

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
athare
Forum Newbie
Posts: 2
Joined: Tue Oct 18, 2005 9:46 am
Contact:

File_Exists Network Path

Post 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
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post 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
athare
Forum Newbie
Posts: 2
Joined: Tue Oct 18, 2005 9:46 am
Contact:

Post 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?
Post Reply