PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
the error is likely because it cannot move the file.
for such reasons as you cannot move it into "htdocs/" as you are already in it, everything is relative to the script itself.
The path to the file is outside of the localhost, and is not in htdocs. There is no accurance f the file inside htdocs. The script works fine when i use the upload form, however I want the path to the file hardcoded into the script. Every time i hit that page from my home PC, i want it to upload the text file. Delete the text file, than insert into a MySql DataBase. Than delete the file on the server.
The file is in C:/program files/sony/everquestII/logs/eqlogs_character.txt
i don't think it has anything to do with file paths but the security around the input type =file.
if it could be hardcoded into the form what would stop from hardcoding in commonfile name into a form and uploading all sorts of data from you computer. Just think of all the fun(usefull)stuff you could get of the windows system directory.
It's down to security I don't think you can do it the way you want.
You could try looking in php ftp functions though.