PHP Script running on the command line died during echo() -


i have script runs on command line, called crontab. in last 5 attempts run script, has died partway through echo statement - cron output shows part of intended echo output, , nothing after executed. long-running script, being run through php-cli, performs file management tasks.

is there might cause script die during echo statement, without generating other output, or way troubleshoot or catch potential errors during echo?

i not sure code can post help, rather comprehensive script involving few libraries. echo statements simple - echo('checking file...') might put in log "che" no more output.

first, enable error-logging. secondly, since it's php, may initialize variable function inside echo function, function exits fatal error (common php+i/o operations) , whole script dies. turn on error-logging, see line causes headaches.

without seeing code best shot.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -