I'm running into a peculiar problem with my PHP script. It runs fine when executed from the linux shell, taking up to 30 seconds, however when the cron job system runs the script it times out at 2 mins and is no where near done. I wanted to see if anyone here might know of a general issue before I start diving into this more.
The script itself checks ports and websites to make sure they are up. It uses socket functions, as well as file_get_contents.