I set up a cron job so I could post via E-Mail and my E-Mails come back saying this:
/home/admin/public_html/htsrv/getmail.php: line 1: ?php: No such file or directory
/home/admin/public_html/htsrv/getmail.php: line 2: syntax error near unexpected token `dirname'
/home/admin/public_html/htsrv/getmail.php: line 2: `require_once(dirname(__FILE__).'/../conf/_config.php');'
Here's the problem area in getmail.php.
<?php
/**
* pop3-2-b2 mail to blog
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2004 by Francois PLANQUE - {@link http://fplanque.net/}
* This file built upon code from original b2 - http://cafelog.com/
*
* @package htsrv
*/
require_once(dirname(__FILE__).'/../conf/_config.php');
require_once(dirname(__FILE__)."/$htsrv_dirout/$core_subdir/_main.php");
require_once(dirname(__FILE__)."/$htsrv_dirout/$core_subdir/_class_pop3.php");
How can I fix this? I can't figure out whats going on here.
I figured it out. I had to add /usr/bin/php in my path. cron now looks like this: /usr/bin/php /home/admin/public_html/htsrv/getmail.php