通过cron job

时间:2015-06-13 11:52:07

标签: php codeigniter cron

我正在使用codeignitor构建一个职位门户网站,并希望将每日职位发布信息发送给用户,这是我试图在cron job中运行的命令

/ usr / bin / php5 /home/sites/domain_name/public_html/beta/index.php cron index

其中beta是主公共目录中的子文件夹,cron是我要调用的main方法中的控制器名称和索引,但它没有工作,我收到此电子邮件(电子邮件示例中的整页html代码是下文)

X-Powered-By: PHP/5.2.17
Set-Cookie:ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%221ef765385e51654bcea0099cd2850232%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A7%3A%220.0.0.0%22%3Bs%3A10%3A%22user_agent%22%3Bb%3A0%3Bs%3A13%3A%22last_activity%22%3Bi%3A1434193382%3Bs%3A9%3A%22user_data%22%3Bs%3BBA0%3A%22%22%3B%7Da8dfb8966c09414dc15b5160a7d7e65fc7ccebb0; path=/
Set-Cookie: PHPSESSID=gv78hetjs54rnjnhelb7rqeuklln6; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html

<html>
<head></head>
<body>
<div id="check-mobile" class="visible-xs"></div>
    <div class="opcity">
<header>
<div id="header_sticky" class="header_wrap header">
    <div class="hdrbove_wrap">
       <div class="container">
                    <ul class="pull-right logout_rgist">
                    <li>
and soon on ....

0 个答案:

没有答案
相关问题