Running a PHP files

Eris

New member
Joined
Dec 24, 2004
Messages
3
I try constanly to run a php file using a cronjob. But if I fill the complete relative link:

Ik got the next error
/home/acount/domains/mydomain.nl/public_html/rss.php: cannot open ?php: no such file

How can I solve it.

I have user rights and no SSH login.
 
I think there are two problems:

1) The PHP start tag is not ok, it should be <?php (not ?php)
2) The cron job should be: /usr/local/bin/php /home/acount/domains/mydomain.nl/public_html/rss.php
or /usr/bin/php /home/acount/domains/mydomain.nl/public_html/rss.php
 
i wrote it in cronjob
/home/user/php /home/user/domain/public_html/a.php

and set it to user ovry 1 min
is it work????or no?
 
You need to determine the location of the php binary. Usually it's /usr/local/bin/php as wdv said.
I highly doubt that it's really located at /home/user/php ;)

What is a.php supposed to do. You should have it do something that will let you know if it's working, either by emailing you a status report for success or error messages by cron.

For example. just having a.php create a file using touch(), would be a good indicator.
 
thanx
in a.php i wrote a java script to run the one file i want tu run this php file to run this code
i want to run a.php evry 1 min but what code tu type in cron job?
 
Back
Top