tnndotnet Posted February 26, 2007 Share Posted February 26, 2007 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 Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted February 26, 2007 Share Posted February 26, 2007 cron job is the answer to that one matey OR forking your script (search 'forking' in the tutorials on this site). Quote Link to comment Share on other sites More sharing options...
tnndotnet Posted February 26, 2007 Author Share Posted February 26, 2007 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 Quote Link to comment Share on other sites More sharing options...
tnndotnet Posted February 26, 2007 Author Share Posted February 26, 2007 im trying to fork it... looks like the right stuff Quote Link to comment Share on other sites More sharing options...
tnndotnet Posted February 26, 2007 Author Share Posted February 26, 2007 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.