I"ve run into a small snag in a PHP script I'm writing. I need to be able to parse a text file that is selected by the user.
The problem I have is I can't figure out how to send the whole file path that the user selects over to my php script.
Currently it is setup so that the initial form has an element (input type="file" name="parsefile"). When the form is submitted it only returns the file name itself in my php script, not the whole file path which is needed to parse the file.
Any insights into this? I"ve done extensive Googling on the matter, but everyone just has file upload scripts, and I have yet to find help regarding opening a user-selected text file.
Thanks
The problem I have is I can't figure out how to send the whole file path that the user selects over to my php script.
Currently it is setup so that the initial form has an element (input type="file" name="parsefile"). When the form is submitted it only returns the file name itself in my php script, not the whole file path which is needed to parse the file.
Any insights into this? I"ve done extensive Googling on the matter, but everyone just has file upload scripts, and I have yet to find help regarding opening a user-selected text file.
Thanks
