Jump to content

Recommended Posts

Ok...

 

I am not exactly sure how to title what I am trying to do, but I can explain it.

 

Whenever a user accesses a certain part of my website, files need to be copied. Now, the files can be up to 5 GB (or more) in size. So I have the function to copy the directories and thats all fine and dandy and it works, doesnt time out, takes some time, but thats fine.

 

What I want to be able to do, is when the user access that particular webpage, is that they can navigate elsewhere, and in the background (on a completely different server) the php process is running, and copying the directory, and then when its done it will use the mail function to let them know its complete (this is already done as well, it emails after the script is ran).

 

So basically the website is on one server, and the files that would be copied are on another server (keep in mind that the files are all local, the website just acts as a link to start scripts up on the remote server, im not trying to copy from one server to the other)

 

So is there anyway whenever a user accesses this webpage, that it will tell them "The copy process has been started, you will be notified upon completion" and then it triggers an action on a different server that copies all the files? And when the user leaves that site, everything is fine, and the process is still running on another server?

 

Any direction or explanations would be much appreciated.

 

Thanks,

 

Daniel Kelly

cron cant be used for this... its not really a time thing, and it seems like it would be a big run around and im lost on how to begin that TBH... I have 3 windows servers and 1 linux server and plan on rapid expansion with this completion...

 

I was thinking of forking as well, but I need some really good reading on it...

 

Thanks

I am kind of lost on this forking thing now...

 

The command im putting in the script they provide works when typing from the commandline, but when executed on a site, it does absolutely nothing at all. Just says to check your email, which I never receive...

 

Any ideas?

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.