ManuTOO
01-07-2005, 03:58 AM
Hello,
I'm using www.powweb.com's hosting.
I set up a PHP script that process all the mails in my Inbox, and depending of the subject, it flags them and call another PHP script presents on my web that will generate an answer, and send a mail.
1st, I tried the processing script from the web, and called the 2nd php script like this :
fopen("http://localhost.mydomain.com/mail.php?name=$Name", "r");
It worked fine.
Then, I put the script in the etc dir, and called it as cron job. The script just runs fine coz I see it still flags the found emails, but the call to the external script by fopen(...) just produces nothing !
I tried with other URLs :
- http://www.mydomain.com/mail.php
- /www/u/uuuu/htdocs/ (u/uuuu is my user name)
- http://localhost/htdocs
still without anymore success.
I don't have any error shown in the cron log...
Anyone has an idea about what could go wrong ?
Thanks,
I'm using www.powweb.com's hosting.
I set up a PHP script that process all the mails in my Inbox, and depending of the subject, it flags them and call another PHP script presents on my web that will generate an answer, and send a mail.
1st, I tried the processing script from the web, and called the 2nd php script like this :
fopen("http://localhost.mydomain.com/mail.php?name=$Name", "r");
It worked fine.
Then, I put the script in the etc dir, and called it as cron job. The script just runs fine coz I see it still flags the found emails, but the call to the external script by fopen(...) just produces nothing !
I tried with other URLs :
- http://www.mydomain.com/mail.php
- /www/u/uuuu/htdocs/ (u/uuuu is my user name)
- http://localhost/htdocs
still without anymore success.
I don't have any error shown in the cron log...
Anyone has an idea about what could go wrong ?
Thanks,