Page 1 of 1

Cannot Access a File

Posted: Mon Feb 05, 2007 3:32 pm
by smgrisw
All,

I have an issue that I cannot resolve. I have a program that runs on a windows machine that opens a file on a network share and processes the contents of the file. This process works fine when I run the job by clicking on the program. When I run the program throught a PHP script using exec an error message saying that the the file cannot be found. If I run this same program using exec except that I point to the same file that has been copied to a local drive I have no problem opening it and processing it.

Has anyone come across this before?

Regards,

Scott

Posted: Mon Feb 05, 2007 3:34 pm
by feyd
The network share probably isn't readable to the user PHP is being run as, or PHP doesn't understand it.

You could use a batch file to request the shared file.