Is there a way to upload a file directly from my hard disc other than using a 'file' field in a form? In other words can I set the path/filename in a script rather than having to run a form and browse for the file?
I need to upload a batch of files ( file1.txt, file2.txt, file3.txt, etc.
...) from a specific directory and it would be handy to use a loop within a
PHP script to set the path of each as a variable (say) and upload it, rather
than browse through the disc for each one and click submit.
I'm sure this must have come up before but I don't know where to look for
the solution!
uploading direct from local hard disc
Moderator: General Moderators
THe php script must hava access to your 'update' file.
This is easy if the php script runs local. If the script is runnening on a remote server is somewhat more complex.
What i did is i made a 'task' on my win98, that uses the dus ftp command to upload a dir to the internet.
The upload duration was about 1h, so 1h30 later i run a cronjob at the server that read's this file.
This is easy if the php script runs local. If the script is runnening on a remote server is somewhat more complex.
What i did is i made a 'task' on my win98, that uses the dus ftp command to upload a dir to the internet.
The upload duration was about 1h, so 1h30 later i run a cronjob at the server that read's this file.