<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Run CodeIgniter from the Command Line / SSH</title>
	<atom:link href="http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/</link>
	<description>PHP Tips &#38; Tools From Starters to Experts</description>
	<lastBuildDate>Sun, 15 Jan 2012 02:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Sam Henry</title>
		<link>http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/comment-page-1/#comment-813</link>
		<dc:creator>Sam Henry</dc:creator>
		<pubDate>Sun, 15 Jan 2012 02:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=43#comment-813</guid>
		<description>Worked perfectly for me too after including the index file as suggested by Terri Ann. Thanks all.</description>
		<content:encoded><![CDATA[<p>Worked perfectly for me too after including the index file as suggested by Terri Ann. Thanks all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: onin</title>
		<link>http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/comment-page-1/#comment-775</link>
		<dc:creator>onin</dc:creator>
		<pubDate>Tue, 09 Aug 2011 06:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=43#comment-775</guid>
		<description>nice! it works, thank you for sharing.</description>
		<content:encoded><![CDATA[<p>nice! it works, thank you for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terri Ann</title>
		<link>http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/comment-page-1/#comment-767</link>
		<dc:creator>Terri Ann</dc:creator>
		<pubDate>Wed, 22 Jun 2011 14:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=43#comment-767</guid>
		<description>Thanks so much for sharing this!  It worked perfectly and &lt;strong&gt;much faster&lt;/strong&gt; as the hacked wget calls I was using as a work around until I came across a better solution.
I used your newest cli.php file but included the index file using&lt;code&gt;
&lt;/code&gt;
&lt;code&gt;include&lt;/code&gt;&lt;code&gt;(dirname(&lt;/code&gt;&lt;code&gt;__FILE__&lt;/code&gt;&lt;code&gt;).&lt;/code&gt;&lt;code&gt;&#039;/index.php&#039;&lt;/code&gt;&lt;code&gt;);&lt;/code&gt;
As you had done in your earlier example.  Great addition with teh constant now I can go and secure all those calls that should only be accessed from the CLI and update my site to have the CLI trigger a fresh cache of heavy queries and pages that I&#039;m already caching with my fork of Phil Sturgeon&#039;s original cache library.  I&#039;ll be comitting an update for it shotly to account for the constant defined in the cli.php file https://github.com/terriann/codeigniter-cache
Thanks again!
</description>
		<content:encoded><![CDATA[<p>Thanks so much for sharing this!  It worked perfectly and <strong>much faster</strong> as the hacked wget calls I was using as a work around until I came across a better solution.<br />
I used your newest cli.php file but included the index file using<code><br />
</code><br />
<code>include</code><code>(dirname(</code><code>__FILE__</code><code>).</code><code>'/index.php'</code><code>);</code><br />
As you had done in your earlier example.  Great addition with teh constant now I can go and secure all those calls that should only be accessed from the CLI and update my site to have the CLI trigger a fresh cache of heavy queries and pages that I&#8217;m already caching with my fork of Phil Sturgeon&#8217;s original cache library.  I&#8217;ll be comitting an update for it shotly to account for the constant defined in the cli.php file <a href="https://github.com/terriann/codeigniter-cache" rel="nofollow">https://github.com/terriann/codeigniter-cache</a><br />
Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/comment-page-1/#comment-757</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Thu, 12 May 2011 05:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=43#comment-757</guid>
		<description>Andrew disregard my prior msg - it was solved deleting an empty line...
:oP</description>
		<content:encoded><![CDATA[<p>Andrew disregard my prior msg &#8211; it was solved deleting an empty line&#8230;<br />
 <img src='http://phpstarter.net/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/comment-page-1/#comment-756</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Thu, 12 May 2011 04:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=43#comment-756</guid>
		<description>Hey Andrew thanks for the code - I understand this is a relatively old post but I wonder if you could give me some advice - I got a cron job to work using your code but in addition to the scheduled e-mail (via cron) I get the Daemon sending me a warning -- any ideas? Thanks (using CI 2.0.2, PHP 5.2.14)

Message:  Cannot modify header information - headers already sent by (output started at /chroot/home/username/example&lt;a href=&quot;http://taildom.com/html/cli.php:3&quot; rel=&quot;nofollow&quot;&gt;.com/html/cli.php:3&lt;/a&gt;)
Filename: libraries/Session.php
Line Number: 671</description>
		<content:encoded><![CDATA[<p>Hey Andrew thanks for the code &#8211; I understand this is a relatively old post but I wonder if you could give me some advice &#8211; I got a cron job to work using your code but in addition to the scheduled e-mail (via cron) I get the Daemon sending me a warning &#8212; any ideas? Thanks (using CI 2.0.2, PHP 5.2.14)</p>
<p>Message:  Cannot modify header information &#8211; headers already sent by (output started at /chroot/home/username/example<a href="http://taildom.com/html/cli.php:3" rel="nofollow">.com/html/cli.php:3</a>)<br />
Filename: libraries/Session.php<br />
Line Number: 671</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/comment-page-1/#comment-740</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 17 Feb 2011 16:31:50 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=43#comment-740</guid>
		<description>&lt;p&gt;Eric, I think that would be more of a workaround.  It involves Apache in making a web request when it&#039;s not necessary.  That and not all shared hosting accounts have access to wget.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Eric, I think that would be more of a workaround.  It involves Apache in making a web request when it&#8217;s not necessary.  That and not all shared hosting accounts have access to wget.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/comment-page-1/#comment-718</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Tue, 07 Dec 2010 14:17:39 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=43#comment-718</guid>
		<description>Why don´t you just run the cron via wget?</description>
		<content:encoded><![CDATA[<p>Why don´t you just run the cron via wget?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/comment-page-1/#comment-697</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Tue, 12 Oct 2010 01:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=43#comment-697</guid>
		<description>&lt;p&gt;Hi John -&lt;/p&gt;
&lt;p&gt;REMOTE_ADDR is an index of the $_SERVER array.  The condition should be:&lt;/p&gt;
&lt;p&gt;isset($_SERVER[&#039;REMOTE_ADDR&#039;])&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Hi John -</p>
<p>REMOTE_ADDR is an index of the $_SERVER array.  The condition should be:</p>
<p>isset($_SERVER['REMOTE_ADDR'])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnJohn</title>
		<link>http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/comment-page-1/#comment-694</link>
		<dc:creator>JohnJohn</dc:creator>
		<pubDate>Sun, 03 Oct 2010 02:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=43#comment-694</guid>
		<description>Hi! I really like this method. The problem I am having is that isset(REMOTE_ADDR) is returning FALSE. my command line is &lt;code&gt;./public_html/cli.php cron alert&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi! I really like this method. The problem I am having is that isset(REMOTE_ADDR) is returning FALSE. my command line is <code>./public_html/cli.php cron alert</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://phpstarter.net/2008/12/run-codeigniter-from-the-command-line-ssh/comment-page-1/#comment-686</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sat, 14 Aug 2010 05:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=43#comment-686</guid>
		<description>Andrew,
Thanks for posting this.  Saved me a lot of time and trouble!
Dave</description>
		<content:encoded><![CDATA[<p>Andrew,<br />
Thanks for posting this.  Saved me a lot of time and trouble!<br />
Dave</p>
]]></content:encoded>
	</item>
</channel>
</rss>

