Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cronjob help
#1
I have no idea how to use the cronjobs for this script as there is no instruction on how to, so I searched the forum and found something to put in the cronjobs, not working tho.. This is the email I get:

Code:
/home2/bajsnizz/public_html/billing/includes/cron.php: line 1: ?php
: No such file or directory
/home2/bajsnizz/public_html/billing/includes/cron.php: line 2:
//////////////////////////////
: No such file or directory
/home2/bajsnizz/public_html/billing/includes/cron.php: line 3: //: is a directory
/home2/bajsnizz/public_html/billing/includes/cron.php: line 4: //: is a directory
/home2/bajsnizz/public_html/billing/includes/cron.php: line 5: //: is a directory
/home2/bajsnizz/public_html/billing/includes/cron.php: line 6: //: is a directory
/home2/bajsnizz/public_html/billing/includes/cron.php: line 7:
//////////////////////////////
: No such file or directory
/home2/bajsnizz/public_html/billing/includes/cron.php: line 8:
: command not found
/home2/bajsnizz/public_html/billing/includes/cron.php: line 9: syntax error near
unexpected token `"LINK",'
/home2/bajsnizz/public_html/billing/includes/cron.php: line 9: `define("LINK", "./");
'
Reply
#2
put php -q infront of the cronjob.
Jonny H - THT Main Developer & Founder


Reply
#3
I see, going to try it now Smile
It should be like "-q /home2/bajsnizz/public_html/billing/includes/cron.php"?
Reply
#4
It should be "php -q /home2/bajsnizz/public_html/billing/includes/cron.php"
Nick - TheHostingTool Staff Coordinator

[Image: standard.png]

Reply
#5
i don't understand where should i put this?
php –q /home/<name of what>/public_html/tht/includes/cron.php

and when i open my acp
i get :

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/cleversh/public_html/tht/includes/types/p2h.php on line 507

Parse error: syntax error, unexpected $end, expecting ']' in /home/cleversh/public_html/tht/includes/types/p2h.php on line 507

thanks ...
Reply
#6
Why does everybody use php -q? That's not really the command. It should be php -f
Kevin Mark - TheHostingTool Lead Developer
Reply
#7
(12-20-2009, 04:24 PM)Kevin Wrote: Why does everybody use php -q? That's not really the command. It should be php -f


The instructions that come with the THT download say to use -q
Reply
#8
(02-05-2010, 12:13 AM)az0884 Wrote:
(12-20-2009, 04:24 PM)Kevin Wrote: Why does everybody use php -q? That's not really the command. It should be php -f


The instructions that come with the THT download say to use -q

I didn't write those. Angel
Kevin Mark - TheHostingTool Lead Developer
Reply
#9
php -q is the proper command for the far more popular CGI Version of php

some people use the CLI SAPI, and the command for them is php -f

if you don't know your PHP type, try php -q
Nick - TheHostingTool Staff Coordinator

[Image: standard.png]

Reply
#10
(02-06-2010, 02:07 PM)Nick Wrote: php -q is the proper command for the far more popular CGI Version of php

some people use the CLI SAPI, and the command for them is php -f

if you don't know your PHP type, try php -q

Hasn't the SAPI been around since PHP 4.2/4.3?
Kevin Mark - TheHostingTool Lead Developer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)