Is it necessary that some output has to be given after a certain period of time ?
My script was running thats taking some 2 hrs which worked for all the values I entered till now. But the one after that - it was running but all of a sudden it just stopped - FF shows Done in the status bar. No Error, Warning, Notices etc ? Im not able to find a problem in the code because for the prev 50+ values it ran ok. A flush() takes place to show the progress. But for one particular value it just stopped in the middle.
I have set
error_reporting(E_ALL);
set_time_limit (0);
How is interaction b/w client and server ? When does Apache stops execution of the script ?
Thanks
[SOLVED] - Client and Server Interaction Timeout Rules
Moderator: General Moderators
[SOLVED] - Client and Server Interaction Timeout Rules
Last edited by anjanesh on Fri Jun 03, 2005 1:30 am, edited 1 time in total.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
More info on cmd-line usage.
I'd also recommend reading up on applying 'cron job'.Do a search on this forum and google for more help if needed. Also had this link in storage.
I'd also recommend reading up on applying 'cron job'.Do a search on this forum and google for more help if needed. Also had this link in storage.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Does your host not provide shell access? If they don't they probably at least provide CRON via CPanel or something.anjanesh wrote:Using FF to run this task.
Why do you need to run a task that takes 2 hours from a browser?
Crawling a site and exracting data.
How would I use the command line on the server ? Telnet ? If so how ?
Thanks
CRON will simply run the task in the CLI.
Seriously, dont use a browser for a 2 hour task
Hope that helps.
Im pretty sure host provides shell access - my client's server is a dedicated one.
I entered SSH (as shown in Plesk) where I typed php -v in bash and it showed Bad Command. Though php -v is working on my PC.
How do login using telnet ? I think thats a lot easier instead of this Java-based SSH console.
I entered SSH (as shown in Plesk) where I typed php -v in bash and it showed Bad Command. Though php -v is working on my PC.
How do login using telnet ? I think thats a lot easier instead of this Java-based SSH console.