Jump to content

file_exists problem


luciedxx

Recommended Posts

web Plataform:        Linux Fedora
Storage Plataform:  Windows 2000

i have my files in a windows shared folder but when my web app wants to check the file with file_exists returns FALSE.

the file nomenclature i use is this:

if(file_exists("\\serverIP\sharedfolder\filename"))
  echo "file exists";

PLZ YOUR HELP!!!
thanks
Link to comment
https://forums.phpfreaks.com/topic/31177-file_exists-problem/
Share on other sites

i mean, i have docs in my windows server then i manage permissions with shared folders. Now my php app i must to enter some liek this:

Select the file: --
                    \\serverIP\sharedfolder\filename
                    \\serverIP2\sharedfolder1\filename
                    \\serverIP3\sharedfolder\filenamec

This information is retrieved from a databases, then with this info i have to check if the file_exists().

Can  you help me?
Link to comment
https://forums.phpfreaks.com/topic/31177-file_exists-problem/#findComment-144091
Share on other sites

Since the files are not accessible from the UNIX server there is no way from plain PHP to to what you want to do. If the UNIX server can mount the shares either via NFS or Samba, then you would be able to test for the existence of the files.

Ken
Link to comment
https://forums.phpfreaks.com/topic/31177-file_exists-problem/#findComment-144157
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.