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?
11
9
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();
?>
5
8
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