| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) | |
|
Surpassing Dutch
Super #1
Joined in Sep 2004
Lives in Arnhem, the Netherlands
Hosted on SH98
2,451 posts
Gave thanks: 179
Thanked 42 times
|
What could be wrong with this script?
Code:
<?php
/*
RSS Feed Poster
Version 1.0.0
by:vbgamer45
http://www.smfhacks.com
*/
// SSI needed to get SMF functions
require('SSI.php');
// For the rss functions
require_once($sourcedir . '/Subs-RSS.php');
UpdateRSSFeedBots();
die($txt['smfrssposter_admin']);
?>
Quote:
__________________
sh98
|
|
|
|
|
|
|
#2 (permalink) |
|
Surpass Developer
On a golden path...
Joined in Jan 2004
Lives in Florida
Hosted on decc.surpasshosting.com
493 posts
Gave thanks: 17
Thanked 76 times
|
Looks like it is not being interpreted through PHP. Can you paste the exact command you are using cron to execute?
__________________
Mark Surpass Hosting Developer sɹnoʎ uɐɥʇ ɹǝʇʇǝq sı bıs ʎɯ |
|
|
|
|
|
#3 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Dec 2005
Lives in MN > USA
Hosted on pass84
797 posts
Gave thanks: 41
Thanked 34 times
|
Like Mark said, could be a problem with the cronjob.
Code:
php /path/to/your/cron.php Probably like /home/cpanelusername/public_html/path/to/file If the file is above public_html (non-public (a very good idea for some cronjobs)), just put in the path the same way. I have a cron that makes backups to my remote server and the path is /home/rob/cron/backups/user1.php |
|
|
|
|
|
#5 (permalink) | |
|
Surpass Fan
Excelling Contributor
Joined in Dec 2005
Lives in MN > USA
Hosted on pass84
797 posts
Gave thanks: 41
Thanked 34 times
|
Yeah, that's formatted wrong.
Quote:
Code:
20 * * * * php /home/public_html/USERNAME/public_html/forum/cronrss.php |
|
|
|
|
|
|
#7 (permalink) |
|
Surpassing Dutch
Super #1
Joined in Sep 2004
Lives in Arnhem, the Netherlands
Hosted on SH98
2,451 posts
Gave thanks: 179
Thanked 42 times
|
2 public_html? Removed the first public_html, and now it works. At least, I don't get the e-mails anymore I posted in the first topic. Now it's only that mysql keeps getting away.
__________________
sh98
|
|
|
|
|
|
#8 (permalink) |
|
Surpass Fan
Excelling Contributor
Joined in Dec 2005
Lives in MN > USA
Hosted on pass84
797 posts
Gave thanks: 41
Thanked 34 times
|
Yeah, that was a typo. You got it right.
And if you plan to run it every 20 minutes, I would leave the email blank when creating the cron. Otherwise it will send you an email every 20 minutes with the results of the cron job. Not really needed once you've confirmed it to be working. |
|
|
|