Current location: Hot Scripts Forums » Programming Languages » PHP » Cron Job Error


Cron Job Error

Reply
  #1 (permalink)  
Old 09-06-04, 03:32 PM
Tempestshade Tempestshade is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Cron Job Error

Hey i have a game www.prom.tempest.z-c-r.com and i have the defualt turn giver script set as a cron job (requiered by installation) but there seems to be an error in either cron job or my script(which i highly doubt cause my friend had same thing and it worked for him) and the cron daemon keeps bring the error

public_html/prom/dundun.php: ?: No such file or directory
public_html/prom/dundun.php: line 2: syntax error near unexpected token `include("const.php")'
public_html/prom/dundun.php: line 2: `include("const.php");'

yes how could it pull part of the script if it was in the wrong directory?and it is in the right directory but the bottom parts wut gets me what does that mean?
Reply With Quote
  #2 (permalink)  
Old 09-06-04, 08:16 PM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
try adding a ./ infront of const.php to make include ( './const.php');


just a guess.
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Reply With Quote
  #3 (permalink)  
Old 09-07-04, 01:39 PM
Tempestshade Tempestshade is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
public_html/prom/dundun.php: ?: No such file or directory
public_html/prom/dundun.php: line 2: syntax error near unexpected token `include("./const.php")'
public_html/prom/dundun.php: line 2: `include("./const.php");'

i get that now :\
Reply With Quote
  #4 (permalink)  
Old 09-07-04, 03:02 PM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
can you post the code around this include?
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Reply With Quote
  #5 (permalink)  
Old 09-07-04, 03:09 PM
Tempestshade Tempestshade is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
What do you mean?
Reply With Quote
  #6 (permalink)  
Old 09-07-04, 08:01 PM
mikaelf mikaelf is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: php[dot]net
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Tempestshade
What do you mean?
posting your dundun.php and cron script which executes it
__________________
Useful PHP links:
bugs.php.net - for reporting PHP bugs
pear.php.net - PHP extension and application repository
pecl.php.net - get non standard PHP modules, submit yours
www.phpclasses.org - PHP classes repository

Last edited by mikaelf; 09-07-04 at 08:22 PM.
Reply With Quote
  #7 (permalink)  
Old 09-10-04, 05:10 PM
Tempestshade Tempestshade is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
i don't have the cron script
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom error handling.. Acecool PHP 2 05-05-05 11:45 AM
You have an error in your SQL syntax. Help! SevEre PHP 7 09-08-04 05:05 AM
asp-iis-Server error nsuresh_rasr ASP.NET 3 02-08-04 12:47 AM
parse error... help? kappler0 PHP 2 01-21-04 03:57 AM
[php error] parse error | fatal error xeoHosting PHP 1 01-03-04 08:12 PM


All times are GMT -5. The time now is 04:25 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.