Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 06:58 am EST

Geeklog Forums

emailgeeklogstories


Status: offline

micahmj11

Forum User
Junior
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?
 Quote

Status: offline

Dirk

Site Admin
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
 Quote

Anonymous

Anonymous
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(); ?>
 Quote

All times are EST. The time is now 06:58 am.

  • 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