Jump to content

Archived

This topic is now archived and is closed to further replies.

ikmyer

Read text file from local PC

Recommended Posts

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...

Share this post


Link to post
Share on other sites
[!--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.

Share this post


Link to post
Share on other sites
[!--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).

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.