php - calling codeigniter controller through cron job -
i building job portal using codeignitor , want send daily job postings users , command attempting run in cron job
/usr/bin/php5 /home/sites/domain_name/public_html/beta/index.php cron index
where beta sub folder in main public directory, cron controller name , index in main method want call didnt work , getting email (whole page html code in email sample 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> , on ....
Comments
Post a Comment