I am currently writing a lookup script which uses a text file on another file server.
I am submitting a form and the value submitted is to be checked against values in the text file. If the file is stored in the same directory as the php script it works perfectly, as soon as I try to access the other server I get "No such file or directory" although I can link to it in HTML.
The code I am using is:
$filename = "\\server\dir\file.txt";
$fd = fopen ($filename, "r");
$contents = fread ($fd,filesize ($filename));
I have also tried:
$filename = readfile("\\server\dir\file.txt");
$fd = fopen ($filename, "r");
$contents = fread ($fd,filesize ($filename));
Is it actually possible to do this??? 
|