Jump to content

please clear my doubt


skwap

Recommended Posts

Friends,

 

suppose iam copying 1 to 100 files using a loop in php & when the copy process reach at 50th file my browser went offline.

 

My doubt is will it copy all 100 files ?? OR it will terminate at 50th file ?

 

if i want to get all files copied if the browser went offline then what i want to do ??

 

Please clear

Link to comment
https://forums.phpfreaks.com/topic/254071-please-clear-my-doubt/
Share on other sites

Assuming everything else is on the server, I think the script would still fail as the process is controlled by the HTTP session connection to the host.  If you were running it on the servers console it would go on regardless, but if the controlling process (your web session) terminates, I am 99% sure it will terminate the PHP scripting within it (been around computers so long I'm never 100% about anything any more!).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.