How to convert a php webpage into a script
I have a page which when I access, checks the local mail server for new emails, and if found, will extract the attachment and insert the contents into a database.
This process works fine however, I want to automate it.
I have setup a cron job to automate it but I can't get it to work and I don't know where to start looking?
This is what I have scheduled in cron:
All I get back from this is the following:
I know that it is executing the file because if I change a few things in the file I can generate a different error message... i guess, I just want to know where to go to look for more detailed error logs.
Status: 500 Internal Server Error
Where can I start? I can't even locate the log file that might give me some more information?
The cron log provides absolutely nothing?
Try putting this is a script and running it from the command line (the CLI config may be different from the web config):
I did that but all it did was output the ext "error_log"
You could just try setting it at the top of your script:
Got the errors displaying and found the problem!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)