Accessing file contents from local hard drive using PHP
Posted on 2006-03-20
I am trying to load the contents of a txt file into a variable so I can store them on my server. The thing is I don't know how to access the file which is on my PC using a PHP script on a server.
I have a form with a file upload box which, when submitted, posts to a PHP page. I then have taken the output from the upload box - C:\\text_text.txt - and stored it in a variable.
From there I have no idea - I need to be able to open that file (on my pc NOT the server) and read it's contents.