hey guys, dont worry about it... its sorted now...
i gave up, and modified the script so now it saves the message in the database, and the second script is called by a cron job. much safer this way.
i gave up, and modified the script so now it saves the message in the database, and the second script is called by a cron job. much safer this way.