I have been working on trying to upload a file for a couple of days now and after reading books, manuals, and multiple forums on this problem, I found no definitive advice for how to accomplish this. The copy function just doesn't seem to work for me and i think i understand why now. I also think i might have come across an approach that has not been mentioned that at least worked for me and would like to share with others to validate the approach.
First my configuration: 1)I am developing my application on a server (Linux/Apache/PHP) that is hosted by Hostica.com. I am development env is on a Win 2K Server.
I get an error message when i try to use the copy(source, destination) function. I debug it to the extent it was clear that the location of the temp file created automatically (that i assigned to "source")by PHP was not not reachable by the function - got a warning that the file could not be found. I located another function called move_upload_file(source,destination) that worked without a hitch. Is anyone familiar with move_upload_file()and why the PHP temporary filename doesn't work as the source in the copy() function...