<?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>Programmazione Archives - TecnoGuide</title>
	<atom:link href="https://tecnoguide.info/programmazione/feed/" rel="self" type="application/rss+xml" />
	<link>https://tecnoguide.info/programmazione/</link>
	<description></description>
	<lastBuildDate>Mon, 18 May 2015 11:19:14 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.4</generator>
	<item>
		<title>Come eseguire in modo casuale un file PHP in una cartella</title>
		<link>https://tecnoguide.info/come-eseguire-in-modo-casuale-un-file-php-in-una-cartella/</link>
					<comments>https://tecnoguide.info/come-eseguire-in-modo-casuale-un-file-php-in-una-cartella/#respond</comments>
		
		<dc:creator><![CDATA[D'Orazi Dario]]></dc:creator>
		<pubDate>Mon, 18 May 2015 11:19:14 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programmazione]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">http://tecnoguide.info/?p=3477</guid>

					<description><![CDATA[<p>&#160; Eseguire casualmente un file PHP contenuto in una cartella presente in ftp è un&#8217;operazione davvero semplice. Scopriamo insieme come fare. Creiamo un nuovo file con estensione PHP (es. 1.php) e al suo interno mettiamo il seguente codice: &#60;?php $dir = &#8216;/tmp&#8217;; $all = scandir($dir); $files = array(); foreach($all AS $f){ if (($f != &#8220;.&#8221;) [&#8230;]</p>
<p>The post <a href="https://tecnoguide.info/come-eseguire-in-modo-casuale-un-file-php-in-una-cartella/">Come eseguire in modo casuale un file PHP in una cartella</a> appeared first on <a href="https://tecnoguide.info">TecnoGuide</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="http://tecnoguide.info/wp-content/uploads/2015/05/php-en-wordpress.jpg"><img fetchpriority="high" decoding="async" class=" size-full wp-image-3478 aligncenter" src="http://tecnoguide.info/wp-content/uploads/2015/05/php-en-wordpress.jpg" alt="php-en-wordpress" width="630" height="300" srcset="https://tecnoguide.info/wp-content/uploads/2015/05/php-en-wordpress.jpg 630w, https://tecnoguide.info/wp-content/uploads/2015/05/php-en-wordpress-300x143.jpg 300w" sizes="(max-width: 630px) 100vw, 630px" /></a></p>
<p>&nbsp;</p>
<p>Eseguire casualmente un file PHP contenuto in una cartella presente in ftp è un&#8217;operazione davvero semplice. Scopriamo insieme come fare.</p>
<p><span id="more-3477"></span></p>
<p>Creiamo un nuovo file con<strong> estensione PHP</strong> (es. 1.php) e al suo interno mettiamo il seguente codice:</p>
<blockquote><p>&lt;?php</p>
<p>$dir = &#8216;/tmp&#8217;;<br />
$all = scandir($dir);</p>
<p>$files = array();<br />
foreach($all AS $f){<br />
if (($f != &#8220;.&#8221;) &amp;&amp; ($f != &#8220;..&#8221;) &amp;&amp; (!is_dir($f))){<br />
$files[] = $f;<br />
}<br />
}<br />
include_once $dir.$files[rand(0, (count($files)-1) )];</p>
<p>?&gt;</p></blockquote>
<p>Sostituite <strong>$dir = &#8216;/tmp&#8217;;</strong> con la directory dove sono contenuti i file .php (es. <strong>/var/www/vhosts/file/</strong>) da eseguire in modo random.</p>
<p>Ora basterà richiamare il file<strong> 1.php</strong> per eseguire uno dei tanti file contenuti nella cartella scelta.</p>
<p>The post <a href="https://tecnoguide.info/come-eseguire-in-modo-casuale-un-file-php-in-una-cartella/">Come eseguire in modo casuale un file PHP in una cartella</a> appeared first on <a href="https://tecnoguide.info">TecnoGuide</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tecnoguide.info/come-eseguire-in-modo-casuale-un-file-php-in-una-cartella/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
