<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Codrops &#187; exec</title>
	<atom:link href="http://tympanus.net/codrops/tag/exec/feed/" rel="self" type="application/rss+xml" />
	<link>http://tympanus.net/codrops</link>
	<description>Useful resources and inspiration for creative minds</description>
	<lastBuildDate>Wed, 23 May 2012 09:46:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to list files in a directory with PHP</title>
		<link>http://tympanus.net/codrops/2009/09/01/how-to-list-files-in-a-directory-with-php/</link>
		<comments>http://tympanus.net/codrops/2009/09/01/how-to-list-files-in-a-directory-with-php/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 20:49:30 +0000</pubDate>
		<dc:creator>cody</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=179</guid>
		<description><![CDATA[Here&#8217;s a simple way to execute the windows dir or the linux ls in PHP Windows: &#60;?php $row = exec('dir',$output,$error); while(list(,$row) = each($output)){ echo $row, "&#60;BR&#62;\n"; } if($error){ echo "Error : $error&#60;BR&#62;\n"; exit; } ?&#62; Linux: &#60;?php $row = exec('ls -ls',$output,$error); while(list(,$row) = each($output)){ echo $row, "&#60;BR&#62;\n"; } if($error){ echo "Error : $error&#60;BR&#62;\n"; exit; } [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a simple way to execute the windows <em>dir</em> or the linux <em>ls</em> in PHP</p>
<p>Windows:</p>
<pre class="brush: php">&lt;?php
$row = exec('dir',$output,$error);
while(list(,$row) = each($output)){
echo $row, "&lt;BR&gt;\n";
}
if($error){
echo "Error : $error&lt;BR&gt;\n";
exit;
}
?&gt;</pre>
<p>Linux:</p>
<pre class="brush: php">&lt;?php
$row = exec('ls -ls',$output,$error);
while(list(,$row) = each($output)){
echo $row, "&lt;BR&gt;\n";
}
if($error){
echo "Error : $error&lt;BR&gt;\n";
exit;
}
?&gt;</pre>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/09/01/how-to-list-files-in-a-directory-with-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  tympanus.net/codrops/tag/exec/feed/ ) in 0.20218 seconds, on May 23rd, 2012 at 2:09 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 23rd, 2012 at 3:09 pm UTC -->
