<?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: Execute Linux commands in PHP by using backticks</title> <atom:link href="http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/feed/" rel="self" type="application/rss+xml" /><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/</link> <description>A periodical blog of experiences from the angle of an autodidactic, paranoid and narcissistic web developer...</description> <lastBuildDate>Mon, 16 Aug 2010 12:08:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator><meta
xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" /> <item><title>By: real_phantom</title><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-1553</link> <dc:creator>real_phantom</dc:creator> <pubDate>Wed, 24 Mar 2010 03:47:36 +0000</pubDate> <guid
isPermaLink="false">http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-1553</guid> <description>Nice tips. Thanks for sharing this great information.</description> <content:encoded><![CDATA[<p>Nice tips. Thanks for sharing this great information.</p> ]]></content:encoded> </item> <item><title>By: rvdavid</title><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-641</link> <dc:creator>rvdavid</dc:creator> <pubDate>Wed, 11 Nov 2009 22:13:49 +0000</pubDate> <guid
isPermaLink="false">http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-641</guid> <description>Hi Subha,A quick google search will yield some &lt;a href=&quot;http://www.google.com.au/search?hl=en&amp;source=hp&amp;q=changing+linux+system+time&amp;btnG=Google+Search&amp;meta=&amp;aq=f&amp;oq=&quot; rel=&quot;nofollow&quot;&gt;useful results&lt;/a&gt;.
I think this will help you, but feel free to check out the other results.
http://www.hypexr.org/linux_date_time_help.phpHTH. Good luck.</description> <content:encoded><![CDATA[<p>Hi Subha,</p><p>A quick google search will yield some <a
href="http://www.google.com.au/search?hl=en&#038;source=hp&#038;q=changing+linux+system+time&#038;btnG=Google+Search&#038;meta=&#038;aq=f&#038;oq=" rel="nofollow">useful results</a>.<br
/> I think this will help you, but feel free to check out the other results.<br
/> <a
href="http://www.hypexr.org/linux_date_time_help.php" rel="nofollow">http://www.hypexr.org/linux_date_time_help.php</a></p><p>HTH. Good luck.</p> ]]></content:encoded> </item> <item><title>By: Subha</title><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-640</link> <dc:creator>Subha</dc:creator> <pubDate>Wed, 11 Nov 2009 13:14:06 +0000</pubDate> <guid
isPermaLink="false">http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-640</guid> <description>Hi every one
I have developed a website and from that site I need to change the Linux System Time abut unable to chage the time.</description> <content:encoded><![CDATA[<p>Hi every one<br
/> I have developed a website and from that site I need to change the Linux System Time abut unable to chage the time.</p> ]]></content:encoded> </item> <item><title>By: Luka</title><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-557</link> <dc:creator>Luka</dc:creator> <pubDate>Sat, 16 May 2009 21:38:58 +0000</pubDate> <guid
isPermaLink="false">http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-557</guid> <description>Hmm it seems this only work in local directory,it can run files from other directory.Well could be beacuse of whm security settings.</description> <content:encoded><![CDATA[<p>Hmm it seems this only work in local directory,it can run files from other directory.Well could be beacuse of whm security settings.</p> ]]></content:encoded> </item> <item><title>By: ruby</title><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-400</link> <dc:creator>ruby</dc:creator> <pubDate>Tue, 03 Mar 2009 06:58:45 +0000</pubDate> <guid
isPermaLink="false">http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-400</guid> <description>I tried executing a shell script via php to open applications like firefox,gvim. It is executing in the command line but not in the browser . Can any one tell me what is the solution for this?Thanks in advance</description> <content:encoded><![CDATA[<p>I tried executing a shell script via php to open applications like firefox,gvim. It is executing in the command line but not in the browser . Can any one tell me what is the solution for this?</p><p>Thanks in advance</p> ]]></content:encoded> </item> <item><title>By: john</title><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-387</link> <dc:creator>john</dc:creator> <pubDate>Wed, 04 Feb 2009 09:29:33 +0000</pubDate> <guid
isPermaLink="false">http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-387</guid> <description>Are you pushing the listing (ls) to a txt file? Perhaps you should try listing the directory:$comand = ?ls -la /var/www/?;
$output = array();
exec($comand, $output);
print_r($output);</description> <content:encoded><![CDATA[<p>Are you pushing the listing (ls) to a txt file? Perhaps you should try listing the directory:</p><p>$comand = ?ls -la /var/www/?;<br
/> $output = array();<br
/> exec($comand, $output);<br
/> print_r($output);</p> ]]></content:encoded> </item> <item><title>By: deisefontoura</title><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-383</link> <dc:creator>deisefontoura</dc:creator> <pubDate>Wed, 28 Jan 2009 18:25:28 +0000</pubDate> <guid
isPermaLink="false">http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-383</guid> <description>It won&#039;t work for me :($comand = &quot;ls -la &gt;&gt; /var/www/deise.txt&quot;;
$output = array();
exec($comand, $output);
print_r($output);The result in the screen is:
Array()Any ideas?</description> <content:encoded><![CDATA[<p>It won&#8217;t work for me <img
src='http://www.rvdavid.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p><p>$comand = &#8220;ls -la &gt;&gt; /var/www/deise.txt&#8221;;<br
/> $output = array();<br
/> exec($comand, $output);<br
/> print_r($output);</p><p>The result in the screen is:<br
/> Array()</p><p>Any ideas?</p> ]]></content:encoded> </item> <item><title>By: Hasan</title><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-379</link> <dc:creator>Hasan</dc:creator> <pubDate>Wed, 31 Dec 2008 12:01:58 +0000</pubDate> <guid
isPermaLink="false">http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-379</guid> <description>Do I need to change some configuration in php.ini ???</description> <content:encoded><![CDATA[<p>Do I need to change some configuration in php.ini ???</p> ]]></content:encoded> </item> <item><title>By: ahmed</title><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-362</link> <dc:creator>ahmed</dc:creator> <pubDate>Tue, 21 Oct 2008 19:05:33 +0000</pubDate> <guid
isPermaLink="false">http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-362</guid> <description>thank you man ilove you php</description> <content:encoded><![CDATA[<p>thank you man ilove you php</p> ]]></content:encoded> </item> <item><title>By: rvdavid</title><link>http://www.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-317</link> <dc:creator>rvdavid</dc:creator> <pubDate>Fri, 15 Aug 2008 05:05:10 +0000</pubDate> <guid
isPermaLink="false">http://blog.rvdavid.net/execute-linux-commands-in-php-by-using-backticks/#comment-317</guid> <description>hmmm that seems odd, it should work, but well some servers I&#039;ve come accross have disabled such php features. Maybe that&#039;s the problem.for example, the following excerpt produced some output for me.-- code
&lt;code&gt;
&lt;?php
$cmd = &#039;ls -la&#039;; // the linux command
$files = array(); // init the output array
exec($cmd, $files); // execute the linux command and put the output in output array// dump the output
echo &#039;&lt;pre&gt;&#039;;
print_r($files);
echo &#039;&lt;/pre&gt;&#039;;
&lt;/code&gt;Anyway, check out the php manual site for more info on exec, perhaps they&#039;ll have some more information for you.  :)
http://au2.php.net/manual/en/function.exec.php</description> <content:encoded><![CDATA[<p>hmmm that seems odd, it should work, but well some servers I&#8217;ve come accross have disabled such php features. Maybe that&#8217;s the problem.</p><p>for example, the following excerpt produced some output for me.</p><p>&#8211; code<br
/> <code><br
/> &lt;?php<br
/> $cmd = 'ls -la'; // the linux command<br
/> $files = array(); // init the output array<br
/> exec($cmd, $files); // execute the linux command and put the output in output array</p><p>// dump the output<br
/> echo '&lt;pre&gt;';<br
/> print_r($files);<br
/> echo '&lt;/pre&gt;';<br
/> </code></p><p>Anyway, check out the php manual site for more info on exec, perhaps they&#8217;ll have some more information for you. <img
src='http://www.rvdavid.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br
/> <a
href="http://au2.php.net/manual/en/function.exec.php" rel="nofollow">http://au2.php.net/manual/en/function.exec.php</a></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 2/9 queries in 0.006 seconds using disk

Served from: www.rvdavid.net @ 2010-09-09 00:26:30 -->