douhui7136 2015-06-13 11:52
浏览 25

通过cron job调用codeigniter控制器

i am building a job portal using codeignitor and want to send daily job postings to the users and this is the command i am attempting to run in cron job

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

where beta is the sub folder in the main public directory, cron is the controller name and index in the main method i want to call but it didnt work and i am getting this email (whole page html code in the email sample is below)

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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?