fopen across windows network
Posted: Thu Sep 28, 2006 4:26 pm
I'm trying to open a file on a network server other than the webserver, so I try...
or any version of it with \ or / and I get
I can open the file just fine on the local machine, just not on a networkered server. The only reference to it I've found is one 3 year old post on opendir() about allowing nullSessions connections to the server... Is this me or windows or what?
Code: Select all
$fh = fopen('\\\\server\\drive\\file.ext' ,'r') or die("can't open log file.");Code: Select all
Warning: fopen(\\wsdcache\c$\test.txt) [function.fopen]: failed to open stream: Invalid argument in G:\random\test.php on line 17