Welcome to Geeklog, Anonymous Tuesday, April 16 2024 @ 10:45 pm EDT

Geeklog Forums


Status: offline


Forum User
Registered: 10/11/02
Posts: 20
i have set up a cronjob to execute emailgeeklogstories. i get an email with the following error: /home/chiadd2/geeklog/emailgeeklogstories.php: ?php: No such file or directory /home/chiadd2/geeklog/emailgeeklogstories.php: line 7: syntax error near unexpected token `include('/home/chiadd2/public_html/lib-common.php')' /home/chiadd2/geeklog/emailgeeklogstories.php: line 7: `include('/home/chiadd2/public_html/lib-common.php');' what have i done wrong?

Status: offline


Site Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Are you sure the file is not corrupted? That first error makes me think it may not start with <?php ... bye, Dirk


here is the contents of my emailgeeklogstories.php: <?php #!/usr/local/bin/php -q #This code snippet is responsible for emailing Geeklog stories to users #for the topics they select. For this script to work you must have compiled #php so it can also be used a shell scripting language. DO NOT change anything #in this file. You should call this script from your crontab (man crontab). include('/home/chiadd2/public_html/lib-common.php'); COM_emailUserTopics(); ?>

All times are EDT. The time is now 10:45 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content