Howdy Guys,
I am wanting to do a pretty big file transfer from server to server. The size is about 6 MB. What is the best way to do this using PHP? Would the normal PHP FTP functions transfer this? If so, How do a I make a progress bar so that I know how far it is?
Thanks Guys.
Depending on transfer speeds, your script may time out so you would need to set that in your php.ini file making sure that you leave enough time for the script to run while running at low speed.
Ok, Cool. Do you know off the top of your head the setting name in the php.ini to set?
And do you know a decent way to make a progress bar?
Hi mate,
Yea if you search your script for:
max_execution_time
that is the setting you need to change, and it is in seconds. Also with rgds to transfer bar i found this on the jigglyweb: http://www.ilmiantajat.net/testing/zuni/phpmailer/progressbar.zip
I havent really looked into it tho, looked at the demo; looks pretty cool (http://www.ilmiantajat.net/testing/zuni/phpmailer/progressbar.php)
Or use [man]set_time_limit/man to just change the limit in this script only.
Ok Thanks guys! This helps alot!