Click to See Complete Forum and Search --> : [RESOLVED] cron jobs--help
keerthi
03-30-2006, 10:48 PM
hi
i have a php file in my server.i want to run the file in a scheduled time.so i used cronjobs.but when i run as
perl javafeed.php
i get error
unterminated <> in line 1
actually in line 1 i have the php tag start
couldnt trace out the problem :confused:
any help appreciatable
thanks
NogDog
03-30-2006, 10:57 PM
perl javafeed.php
PHP is not Perl.
LiLcRaZyFuZzY
03-30-2006, 11:13 PM
PHP is not Perl.
erm...that's new! :D :p
keerthi
03-31-2006, 01:23 AM
hey i too know that its bit funny to give like that..so can u suggest me what should be given in the command prompt of linux
NogDog
03-31-2006, 05:44 AM
First you need to see if PHP was installed with the CLI enabled. You can try entering php -v at a command prompt and see if it says "(cli)" after the PHP version number. If so then everything's set, and all you need to do is make your command:
php -f /path/to/filename.php
keerthi
03-31-2006, 10:00 PM
Thanks :cool:
raaam
04-01-2006, 03:14 AM
hi
i have a php file in my server.i want to run the file in a scheduled time.so i used cronjobs.but when i run as
perl javafeed.php
i get error
unterminated <> in line 1
actually in line 1 i have the php tag start
couldnt trace out the problem :confused:
any help appreciatable
thanks
Hi,
ru using linux OS...?
i think here blow this link usefull 2 u..
see this...
http://www.phpfreaks.com/tutorials/28/0.php ;)