Jump to content

Read text file from local PC


ikmyer

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...
Link to comment
https://forums.phpfreaks.com/topic/9739-read-text-file-from-local-pc/
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.

Archived

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

×
×
  • Create New...

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.