ikmyer Posted May 15, 2006 Share Posted May 15, 2006 Hello,I have been working on this for a few hours now...I am trying to read the contents of a file that is on the local pc ( computer loading the page ). I am trying to read a text file, find a certain line and then store some data of that line in another text file.The problem I am having is I can't seem to get the file to open for reading... I get a permission denied error message. Is there a way around this or how can this be done. The page will only be accessed by a script that is calling the page and only PC's on the loca network will load it.Thanks for any and all help!!for some reason the site would not let me post code... Quote Link to comment Share on other sites More sharing options...
_will Posted May 15, 2006 Share Posted May 15, 2006 [!--quoteo(post=374132:date=May 15 2006, 05:21 PM:name=ikmyer)--][div class=\'quotetop\']QUOTE(ikmyer @ May 15 2006, 05:21 PM) [snapback]374132[/snapback][/div][div class=\'quotemain\'][!--quotec--]Hello,I have been working on this for a few hours now...I am trying to read the contents of a file that is on the local pc ( computer loading the page ). I am trying to read a text file, find a certain line and then store some data of that line in another text file.The problem I am having is I can't seem to get the file to open for reading... I get a permission denied error message. Is there a way around this or how can this be done. The page will only be accessed by a script that is calling the page and only PC's on the loca network will load it.Thanks for any and all help!!for some reason the site would not let me post code...[/quote]What is the exact error message you are receiving and can you please paste the line of code where you open the file. If you post that information we can be of more help. Quote Link to comment Share on other sites More sharing options...
trq Posted May 16, 2006 Share Posted May 16, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]I have been working on this for a few hours now..[/quote]Wasted time.Php runs on the server and cannot open files on a client (accept cookies). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.