Jump to content

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!).

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.