Page 1 of 1

Execute file in server after window is closed

Posted: Mon Jan 24, 2011 11:21 am
by avix
I have made a php script which will take 4-5 hours to run completely so instead of running that file from browser if we could run it on server like a back-end process .so if it's posiible how we can do this.

Re: Execute file in server after window is closed

Posted: Mon Jan 24, 2011 2:00 pm
by greyhoundcode
A cron job might fit the bill. Read this.

Re: Execute file in server after window is closed

Posted: Mon Jan 24, 2011 5:28 pm
by califdon
That, or use a language that wasn't specifically designed to be run from browsers, such as PERL.

Re: Execute file in server after window is closed

Posted: Tue Jan 25, 2011 7:00 am
by sockpuppet
If you have SSH access then you can run it from the command line. Though with califdon on this one I'd use PERL, it's very PHP like (or is PHP very PERL like?) so its not hard to pick up the differences in the language.