<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[PHP]$var a num tempo]]></title><description><![CDATA[<p dir="auto">vorrei che $id_cartella = sia un numero compreso tra 1 e 9 e che cambi ogni minuti.<br />
qualcuno sa com' è lo script ?</p>
]]></description><link>https://dev.connect.gt/topic/73356/php-var-a-num-tempo</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Dec 2026 17:46:06 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/73356.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Jun 2008 18:20:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 21:13:18 GMT]]></title><description><![CDATA[<p dir="auto">$id_cartella = substr(date('i'), -1, 1); ho messo cosi'<br />
grazie!!!<br />
:bho:non volevo farti sbroccare eh!</p>
]]></description><link>https://dev.connect.gt/post/719987</link><guid isPermaLink="true">https://dev.connect.gt/post/719987</guid><dc:creator><![CDATA[giorgiodp]]></dc:creator><pubDate>Sun, 01 Jun 2008 21:13:18 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 21:09:17 GMT]]></title><description><![CDATA[<p dir="auto">ti servono in ordine??<br />
$id_cartella = (date("i")%9)+1;</p>
]]></description><link>https://dev.connect.gt/post/719986</link><guid isPermaLink="true">https://dev.connect.gt/post/719986</guid><dc:creator><![CDATA[saro78]]></dc:creator><pubDate>Sun, 01 Jun 2008 21:09:17 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 20:53:09 GMT]]></title><description><![CDATA[<p dir="auto">mi prende id_cartella:<br />
5,1,7,3,9,5...</p>
<p dir="auto">&lt;?php<br />
include "config.php";<br />
$query = mysql_query("SELECT id_user, date FROM messaggi ORDER BY date DESC limit 1");<br />
while($riga = mysql_fetch_assoc($query))<br />
{<br />
$id_user = $riga['id_user'];<br />
}<br />
srand(date("i"));<br />
$id_cartella = rand(1,9);<br />
$cartella = "fotos/".$id_cartella ;<br />
$image_src ="fotos/" . $id_cartella . "fotos/"."1" . ".jpg";<br />
echo $id_cartella ;<br />
?&gt;</p>
]]></description><link>https://dev.connect.gt/post/719992</link><guid isPermaLink="true">https://dev.connect.gt/post/719992</guid><dc:creator><![CDATA[giorgiodp]]></dc:creator><pubDate>Sun, 01 Jun 2008 20:53:09 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 20:43:48 GMT]]></title><description><![CDATA[<p dir="auto">si va bene.<br />
non mi prende le cartelle in ordine numerico</p>
]]></description><link>https://dev.connect.gt/post/719991</link><guid isPermaLink="true">https://dev.connect.gt/post/719991</guid><dc:creator><![CDATA[giorgiodp]]></dc:creator><pubDate>Sun, 01 Jun 2008 20:43:48 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 20:38:38 GMT]]></title><description><![CDATA[<p dir="auto">cazzo. scusa l'intercalare.<br />
copia/incolla il codice che ti ho dato prima:</p>
<blockquote>
<p dir="auto">srand(date("i"));<br />
$id_cartella = rand(1,9);</p>
</blockquote>
<p dir="auto">non ti ho detto di modificarlo.<br />
se non sai cosa fa il codice vai su <a href="http://php.net" rel="nofollow ugc">php.net</a> e vai a vedere cosa fanno le funzioni: srand, date e rand.<br />
stop.</p>
]]></description><link>https://dev.connect.gt/post/719981</link><guid isPermaLink="true">https://dev.connect.gt/post/719981</guid><dc:creator><![CDATA[saro78]]></dc:creator><pubDate>Sun, 01 Jun 2008 20:38:38 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 20:36:04 GMT]]></title><description><![CDATA[<p dir="auto">se lascio "i" minuti,<br />
devo avere 60 cartelle o alla fine ricomincia?<br />
grazie ancora</p>
]]></description><link>https://dev.connect.gt/post/719990</link><guid isPermaLink="true">https://dev.connect.gt/post/719990</guid><dc:creator><![CDATA[giorgiodp]]></dc:creator><pubDate>Sun, 01 Jun 2008 20:36:04 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 20:30:53 GMT]]></title><description><![CDATA[<p dir="auto">mi hai chiesto "i" sono i minuti, ti ho risposto si, sono i minuti, i minuti correnti, ora sarebbe = 37 (sono le 22:37), fra un minuto è = 38. Se lo metti a 1 sempre  come fa a cambiare???</p>
]]></description><link>https://dev.connect.gt/post/719980</link><guid isPermaLink="true">https://dev.connect.gt/post/719980</guid><dc:creator><![CDATA[saro78]]></dc:creator><pubDate>Sun, 01 Jun 2008 20:30:53 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 20:27:15 GMT]]></title><description><![CDATA[<p dir="auto">i =quanto tempo?<br />
a me basta un valore preciso che possa essere circolare per poi ricominciare il conteggio da 0 di $is_cartella</p>
]]></description><link>https://dev.connect.gt/post/719989</link><guid isPermaLink="true">https://dev.connect.gt/post/719989</guid><dc:creator><![CDATA[giorgiodp]]></dc:creator><pubDate>Sun, 01 Jun 2008 20:27:15 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 19:58:43 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">srand(date("1"));</p>
</blockquote>
<p dir="auto">non doveva essere "i" ?</p>
]]></description><link>https://dev.connect.gt/post/719979</link><guid isPermaLink="true">https://dev.connect.gt/post/719979</guid><dc:creator><![CDATA[saro78]]></dc:creator><pubDate>Sun, 01 Jun 2008 19:58:43 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 19:57:08 GMT]]></title><description><![CDATA[<p dir="auto">ho messo cosi', ma pur passando il tempo la foto visualizzata è sempre la stessa..<br />
&lt;?php<br />
include "config.php";<br />
$query = mysql_query("SELECT id_user, date FROM messaggi ORDER BY date DESC limit 1");<br />
while($riga = mysql_fetch_assoc($query))<br />
{<br />
$id_user = $riga['id_user'];<br />
}<br />
srand(date("1"));<br />
$id_cartella = rand(1,9);<br />
$cartella = "fotos/".$id_cartella ;<br />
$image_src ="fotos/" . $id_cartella . "fotos/"."1" . ".jpg";<br />
echo "&lt;img src="$image_src"&gt;";</p>
<p dir="auto">?&gt;</p>
]]></description><link>https://dev.connect.gt/post/719988</link><guid isPermaLink="true">https://dev.connect.gt/post/719988</guid><dc:creator><![CDATA[giorgiodp]]></dc:creator><pubDate>Sun, 01 Jun 2008 19:57:08 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 19:52:43 GMT]]></title><description><![CDATA[<p dir="auto">si,<br />
<a href="http://it2.php.net/manual/it/function.date.php" rel="nofollow ugc">it2.php.net/manual/it/function.date.php</a></p>
<p dir="auto">prego</p>
]]></description><link>https://dev.connect.gt/post/719978</link><guid isPermaLink="true">https://dev.connect.gt/post/719978</guid><dc:creator><![CDATA[saro78]]></dc:creator><pubDate>Sun, 01 Jun 2008 19:52:43 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 19:42:46 GMT]]></title><description><![CDATA[<p dir="auto">"i" sta per minuti?<br />
grazie mille</p>
]]></description><link>https://dev.connect.gt/post/719985</link><guid isPermaLink="true">https://dev.connect.gt/post/719985</guid><dc:creator><![CDATA[giorgiodp]]></dc:creator><pubDate>Sun, 01 Jun 2008 19:42:46 GMT</pubDate></item><item><title><![CDATA[Reply to [PHP]$var a num tempo on Sun, 01 Jun 2008 19:31:52 GMT]]></title><description><![CDATA[<p dir="auto">srand(date("i"));<br />
$id_cartella = rand(1,9);</p>
]]></description><link>https://dev.connect.gt/post/719977</link><guid isPermaLink="true">https://dev.connect.gt/post/719977</guid><dc:creator><![CDATA[saro78]]></dc:creator><pubDate>Sun, 01 Jun 2008 19:31:52 GMT</pubDate></item></channel></rss>