<?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>php Archives - TecnoGuide</title>
	<atom:link href="https://tecnoguide.info/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>https://tecnoguide.info/tag/php/</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>
		<item>
		<title>Come installare APC (Alternative PHP Cache) in CentOS 6</title>
		<link>https://tecnoguide.info/come-installare-apc-alternative-php-cache-in-centos-6/</link>
					<comments>https://tecnoguide.info/come-installare-apc-alternative-php-cache-in-centos-6/#respond</comments>
		
		<dc:creator><![CDATA[D'Orazi Dario]]></dc:creator>
		<pubDate>Fri, 25 Jul 2014 15:44:44 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[apc]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">http://tecnoguide.info/?p=1229</guid>

					<description><![CDATA[<p>APC (Alternate PHP Cache) è un&#8217;estensione gratuita che permette di ottimizzare il codice PHP. Ecco come installarla sul proprio server Centos 6 in pochi e semplici passaggi. Installare le dipendenze per APC Entrate in ssh e digitate il seguente comando: yum install php-pear php-devel httpd-devel pcre-devel gcc make Installare APC usando PECL Ora sempre in [&#8230;]</p>
<p>The post <a href="https://tecnoguide.info/come-installare-apc-alternative-php-cache-in-centos-6/">Come installare APC (Alternative PHP Cache) in CentOS 6</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/2014/07/apcphp.png"><img decoding="async" class="size-full wp-image-1230 aligncenter" src="http://tecnoguide.info/wp-content/uploads/2014/07/apcphp.png" alt="apcphp" width="677" height="256" srcset="https://tecnoguide.info/wp-content/uploads/2014/07/apcphp.png 677w, https://tecnoguide.info/wp-content/uploads/2014/07/apcphp-300x113.png 300w" sizes="(max-width: 677px) 100vw, 677px" /></a></p>
<p><strong>APC</strong> (<strong>Alternate PHP Cache</strong>) è un&#8217;estensione gratuita che permette di ottimizzare il codice PHP. Ecco come installarla sul proprio server Centos 6 in pochi e semplici passaggi.</p>
<p><span id="more-1229"></span></p>
<h3>Installare le dipendenze per APC</h3>
<p>Entrate in ssh e digitate il seguente comando:</p>
<blockquote><p>yum install php-pear php-devel httpd-devel pcre-devel gcc make</p></blockquote>
<h3>Installare APC usando PECL</h3>
<p>Ora sempre in ssh digitate:</p>
<blockquote><p>pecl install apc</p></blockquote>
<h3>Abilitare l&#8217;estensione APC PHP</h3>
<p>Digitare in ssh il seguente comando:</p>
<blockquote><p>echo &#8220;extension=apc.so&#8221; &gt; /etc/php.d/apc.ini</p></blockquote>
<p>e riavviate Apache tramite il comando:</p>
<blockquote><p>service httpd restart<br />
o<br />
/etc/init.d/httpd restart</p></blockquote>
<h3>Verificare l&#8217;installazione di APC</h3>
<p>Create un file phpinfo.php in Apache per esemprio in /var/www/html/phpinfo.php.</p>
<blockquote><p># vi /var/www/html/phpinfo.php</p></blockquote>
<p>Scrivete il seguente codice e salvate:</p>
<blockquote><p>&lt;?php</p>
<p>// Show all information, defaults to INFO_ALL<br />
phpinfo();</p>
<p>?&gt;</p></blockquote>
<p>Ora aprite il browser e controllate i parametri come ad esempio:</p>
<blockquote><p>http://localhost/phpinfo.php</p></blockquote>
<h3>Aggiornare APC</h3>
<p>Digitate il comando:</p>
<blockquote><p>pecl upgrade apc</p></blockquote>
<h3>Disinstallare APC</h3>
<blockquote><p>pecl uninstall apc</p></blockquote>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://tecnoguide.info/come-installare-apc-alternative-php-cache-in-centos-6/">Come installare APC (Alternative PHP Cache) in CentOS 6</a> appeared first on <a href="https://tecnoguide.info">TecnoGuide</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tecnoguide.info/come-installare-apc-alternative-php-cache-in-centos-6/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
