luciedxx Posted December 19, 2006 Share Posted December 19, 2006 web Plataform: Linux FedoraStorage Plataform: Windows 2000i 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 More sharing options...
trq Posted December 19, 2006 Share Posted December 19, 2006 What do you meen by a windows shared folder? Is this folder mounted within Linux? Link to comment https://forums.phpfreaks.com/topic/31177-file_exists-problem/#findComment-144084 Share on other sites More sharing options...
luciedxx Posted December 19, 2006 Author Share Posted December 19, 2006 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\filenamecThis 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 More sharing options...
kenrbnsn Posted December 19, 2006 Share Posted December 19, 2006 Is the web server running on the Windows machine?Ken Link to comment https://forums.phpfreaks.com/topic/31177-file_exists-problem/#findComment-144118 Share on other sites More sharing options...
luciedxx Posted December 19, 2006 Author Share Posted December 19, 2006 No Ken, the web app is on a linux machine, fedora. Link to comment https://forums.phpfreaks.com/topic/31177-file_exists-problem/#findComment-144120 Share on other sites More sharing options...
kenrbnsn Posted December 19, 2006 Share Posted December 19, 2006 Then you won't be able to access the files on the Windows server unless they are accessible to the UNIX machine.Ken Link to comment https://forums.phpfreaks.com/topic/31177-file_exists-problem/#findComment-144129 Share on other sites More sharing options...
luciedxx Posted December 19, 2006 Author Share Posted December 19, 2006 ok ken, sorry if i looks like a bad programmer but my job is pending of this...Thanksregardsbut i have a last question, how can do that? how can give permissions to that? Link to comment https://forums.phpfreaks.com/topic/31177-file_exists-problem/#findComment-144133 Share on other sites More sharing options...
kenrbnsn Posted December 19, 2006 Share Posted December 19, 2006 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 More sharing options...
corbin Posted December 19, 2006 Share Posted December 19, 2006 Theoretically PHP would treat it as a URL, but like kenrbnsn already said, your machine must have access... If you go to \\server\folder\file through linux's equivalent of explorer can you open the file? Link to comment https://forums.phpfreaks.com/topic/31177-file_exists-problem/#findComment-144160 Share on other sites More sharing options...
luciedxx Posted December 19, 2006 Author Share Posted December 19, 2006 mmm ok Ken... i understand...thanks a lot my friend.Regards and Merry Christmas Link to comment https://forums.phpfreaks.com/topic/31177-file_exists-problem/#findComment-144169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.