i call an php pgm per cronjob at different times. the pgm includes many php-files. each file sends or gets data from partners.
How can i handle errors in one includes pgm.
at the time, one ftp-connection in an included pgm fails so the complete script crushes. how can i handle this ?
You should wrap code, which is possible to crash, into
try/catch
construction. This will throw exeption, but the script will continue to work. More here.