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!
Whenever I try to use the copy or fwrite functions I get a permissions error.
How do I overcome this?
I have used FTP to copy the file to my web server (where I can set a username & password). I now need to copy the file to my local hard drive. (I would rather write it directly to my local c: drive using an ftp fuction, but I seem to have the same permission denied error.
I do have an FTP program.
I am trying to automate a process that has to happen everyday. This includes
1. downloading from ftp
2. Unzipping the downloaded file
3. Reading the extracted file into a table
4. mainipulate that table
5. Uploading the table to mysql
If possible, i would recommend doing all of the work in the server. Especially since the file is already there and you can use php and send the table to the mysql server straight from there.