<?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>digilabs.com.ar &#187; PHP</title>
	<atom:link href="http://digilabs.com.ar/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://digilabs.com.ar</link>
	<description>Let's code!!!</description>
	<lastBuildDate>Tue, 24 Jan 2012 00:14:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Leer el news feed de facebook</title>
		<link>http://digilabs.com.ar/2011/07/tutoriales/leer-el-news-feed-de-facebook</link>
		<comments>http://digilabs.com.ar/2011/07/tutoriales/leer-el-news-feed-de-facebook#comments</comments>
		<pubDate>Wed, 13 Jul 2011 12:28:28 +0000</pubDate>
		<dc:creator>Andrés Argüello Pitt</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://digilabs.com.ar/?p=1465</guid>
		<description><![CDATA[El 3 de junio, Facebook actualizo el Graph API y ahora requiera un &#8220;access token&#8221; para poder leer el news feed o wall post o muro, así sean públicos. Este cambio ha hecho que muchas paginas/scripts dejen de funcionar, es por esto luego de investigar que encontre una solución que les dejo acá. esto es [...]]]></description>
			<content:encoded><![CDATA[<p>El 3 de junio, Facebook actualizo el Graph API y ahora requiera un &#8220;access token&#8221; para poder leer el news feed o wall post o muro, así sean públicos. Este cambio ha hecho que muchas paginas/scripts dejen de funcionar, es por esto luego de investigar que encontre una solución que les dejo acá.</p>
<p>esto es lo que se hacia antes del 3 de junio:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> fetchUrl<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
     <span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_TIMEOUT<span style="color: #339933;">,</span> <span style="color: #cc66cc;">20</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
     <span style="color: #000088;">$retData</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
     <span style="color: #b1b100;">return</span> <span style="color: #000088;">$retData</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$profile_id</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;1234567890&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'feed_data'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> fetchUrl<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://graph.facebook.com/<span style="color: #006699; font-weight: bold;">{$profile_id}</span>/feed&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Con los cambios recientes hay que hacer una pequena modificacion:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$profile_id</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;1234567890&quot;</span><span style="color: #339933;">;</span>		
&nbsp;
<span style="color: #666666; font-style: italic;">//App Info, </span>
<span style="color: #000088;">$app_id</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;0001234567890&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$app_secret</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;abc123ebf123f3g5g6j&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//retrieve auth token</span>
<span style="color: #000088;">$authToken</span> <span style="color: #339933;">=</span> fetchUrl<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;https://graph.facebook.com/oauth/access_token?type=client_cred&amp;client_id=<span style="color: #006699; font-weight: bold;">{$app_id}</span>&amp;client_secret=<span style="color: #006699; font-weight: bold;">{$app_secret}</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'feed_data'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> fetchUrl<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;https://graph.facebook.com/<span style="color: #006699; font-weight: bold;">{$profile_id}</span>/feed?<span style="color: #006699; font-weight: bold;">{$authToken}</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Se agregan dos componentes para crear la url que nos devolvera la feed y estas son simplemente la app id y la app secret.Estas nos sirven para pedir un &#8220;Token&#8221; que sera usado para pedir el &#8220;Feed&#8221;. La app id y app secret se pueden obtener facilmente creando una aplicacion en <a href="https://developers.facebook.com">www.facebook.com/developers.</a><br />
Espero que les sea util</p>
]]></content:encoded>
			<wfw:commentRss>http://digilabs.com.ar/2011/07/tutoriales/leer-el-news-feed-de-facebook/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Css condicional</title>
		<link>http://digilabs.com.ar/2011/07/tutoriales/css-condicional</link>
		<comments>http://digilabs.com.ar/2011/07/tutoriales/css-condicional#comments</comments>
		<pubDate>Mon, 11 Jul 2011 12:47:15 +0000</pubDate>
		<dc:creator>Andrés Argüello Pitt</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://digilabs.com.ar/?p=1462</guid>
		<description><![CDATA[Hay varias formas de usar distintas hojas de estilo según el browser que nuestro usuario tenga. Pero lejos me parece que la que mas control y seguridad no da es simplemente con php elegir el archivo correspondiente según el resultado del HTTP_USER_AGENT. Lo ideal no es cargar css completamente distintos sino cargar uno general para [...]]]></description>
			<content:encoded><![CDATA[<p>Hay varias formas de usar distintas hojas de estilo según el browser que nuestro usuario tenga. Pero lejos me parece que la que mas control y seguridad no da es simplemente con php elegir el archivo correspondiente según el resultado del HTTP_USER_AGENT. Lo ideal no es cargar css completamente distintos sino cargar uno general para todos y luego según el browser cargar el uno que corrija los errores particulares, total como lo cargamos secundariamente los primeros selectores serán sobre escritos.<br />
Por ejemplo:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"> &lt;link href=&quot;http://www.grupoquantum.com/css/css.css?v=0.9&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
&nbsp;
       <span style="color: #000000; font-weight: bold;">&lt;?php</span>
       <span style="color: #000088;">$msie</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTP_USER_AGENT&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'MSIE'</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span> 
	   <span style="color: #000088;">$firefox</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTP_USER_AGENT&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Firefox'</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span> 
	   <span style="color: #000088;">$safari</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTP_USER_AGENT&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Safari'</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span> 
	   <span style="color: #000088;">$chrome</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTP_USER_AGENT&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Chrome'</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
	   <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$firefox</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//Firefox?</span>
&nbsp;
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$safari</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$chrome</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// Safari?</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;link href=&quot;http://www.grupoquantum.com/css/css-webkit.css?v=0.9&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$msie</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// Not IE?</span>
&nbsp;
		<span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$msie</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// IE?</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;link href=&quot;http://www.grupoquantum.com/css/css-ie.css?v=2.3&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
	   <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Tambien es recomendable incluir la version que estamos usando de forma que nos aseguramos que estamos viendo el ultimo archivo modificado y no una version cacheada.</p>
]]></content:encoded>
			<wfw:commentRss>http://digilabs.com.ar/2011/07/tutoriales/css-condicional/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>seleccionar entradas aleatoriamente en mySql</title>
		<link>http://digilabs.com.ar/2011/03/tutoriales/seleccionar-entradas-aleatoriamente-en-mysql</link>
		<comments>http://digilabs.com.ar/2011/03/tutoriales/seleccionar-entradas-aleatoriamente-en-mysql#comments</comments>
		<pubDate>Sun, 13 Mar 2011 08:38:14 +0000</pubDate>
		<dc:creator>Andrés Argüello Pitt</dc:creator>
				<category><![CDATA[mySql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://digilabs.com.ar/?p=1401</guid>
		<description><![CDATA[La idea de este tutorial se basa en la siguiente situación: Hemos hecho una competencia donde se encontraba un formulario donde los participantes dejaban sus datos. La competencia corre por cuatro semanas y tenemos que elegir un ganador cada semana. Como seguridad también en vez de elegir sólo un ganador elegiremos 5 ganadores de forma [...]]]></description>
			<content:encoded><![CDATA[<p>La idea de este tutorial se basa en la siguiente situación: Hemos hecho una competencia donde se encontraba un formulario donde los participantes dejaban sus datos. La competencia corre por cuatro semanas y tenemos que elegir un ganador cada semana.<br />
Como seguridad también en vez de elegir sólo un ganador elegiremos 5 ganadores de forma que contactémos al primero y en caso que no cumpla con los requisitos de la política de privacidad llamaremos al segundo y así sucesivamente.</p>
<p>Bueno el código es muy fácil, se basa en la utilización de <strong>rand()</strong> que es una funcion incluida en mysql.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">SELECT <span style="color: #339933;">*</span> FROM  `competicion` ORDER BY <span style="color: #990000;">RAND</span><span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span> LIMIT <span style="color: #cc66cc;">1</span><span style="color: #0000ff;">&quot;;</span></pre></td></tr></table></div>

<p>Como había comentado antes quiero seleccionar 5 ganadores que sean de la semana x y que no hayan ganado (la semana en la que han ingresado se guarda en la db al momento de registro) por lo que  la consulta nos quedaría de la siguiente forma:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT * FROM  `competicion` WHERE semana =  'primera' AND gano =  'no' ORDER BY RAND( ) LIMIT 5&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Con eso ya tenemos todo, utilizando PHP se nos hace bien fácil enviarnos los resultados a nuestro email o simplemente imprimirlo en la pantalla.<br />
El código completo sería algo como:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$semana</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'primera'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT * FROM  `competicion` WHERE semana = '<span style="color: #006699; font-weight: bold;">$semana</span>' AND gano =  'no' ORDER BY RAND( ) LIMIT 5&quot;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;No se pudo correr la consulta (<span style="color: #006699; font-weight: bold;">$sql</span>) de la DB: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;No se encontraron registros&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$fecha</span><span style="color: #339933;">=</span><span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'l jS \of F Y h:i:s A'</span><span style="color: #339933;">,</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'time'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$ganador</span><span style="color: #339933;">.=</span><span style="color: #0000ff;">&quot;Id: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;id&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Title: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'titulo'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Nombre: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'nombre'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Apellido: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'apellido'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Email: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Edad: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'edad'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Respuesta: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'respuesta'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Time: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$fecha</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #990000;">mysql_free_result</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$to</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'email del administrador o quien vaya a chequear que el ganador sea genuino'</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">mail</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$to</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;ganador de la semana &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$semana</span><span style="color: #339933;">,</span><span style="color: #000088;">$ganador</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;la lista de ganadores ha sido enviada a <span style="color: #006699; font-weight: bold;">$to</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://digilabs.com.ar/2011/03/tutoriales/seleccionar-entradas-aleatoriamente-en-mysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP for Android</title>
		<link>http://digilabs.com.ar/2010/07/programacion/php-for-android</link>
		<comments>http://digilabs.com.ar/2010/07/programacion/php-for-android#comments</comments>
		<pubDate>Mon, 19 Jul 2010 08:05:38 +0000</pubDate>
		<dc:creator>Andrés Argüello Pitt</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programación]]></category>

		<guid isPermaLink="false">http://digilabs.com.ar/?p=1009</guid>
		<description><![CDATA[No me voy a explayar mucho porque el titulo lo dice todo. phpforAndroid es una seria de librerias/framework que te permite desarrollar aplicaciones para Android usando PHP. Está bastante bueno porque las salidas las hace usando la GUI de Android. Vean el video que demuestra bien de lo que estoy hablando. Espero que sigan evolucionando [...]]]></description>
			<content:encoded><![CDATA[<p>No me voy a explayar mucho porque el titulo lo dice todo. phpforAndroid es una seria de librerias/framework que te permite desarrollar aplicaciones para Android usando PHP. Está bastante bueno porque las salidas las hace usando la GUI de Android. Vean el video que demuestra bien de lo que estoy hablando. Espero que sigan evolucionando estas tecnologías y que en el futuro podamos acceder a la brujula, al gps, la camará,etc.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="693" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=13177370&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=ff9933&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="693" src="http://vimeo.com/moogaloop.swf?clip_id=13177370&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=ff9933&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://digilabs.com.ar/2010/07/programacion/php-for-android/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htacess generator</title>
		<link>http://digilabs.com.ar/2010/05/programacion/htacess-generator</link>
		<comments>http://digilabs.com.ar/2010/05/programacion/htacess-generator#comments</comments>
		<pubDate>Thu, 13 May 2010 09:47:50 +0000</pubDate>
		<dc:creator>Andrés Argüello Pitt</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programación]]></category>

		<guid isPermaLink="false">http://digilabs.com.ar/?p=801</guid>
		<description><![CDATA[Estoy con los generadores online. Ayer hice un post cortito sobre una aplicación online que te permitía formatear fecha en mySql. Hoy dejo una nueva aplicación que genera los archivos .htaccess. Los .htacces siempre fueron difícil de hacer, si bien es un documento de texto nunca recuerdo bien como es la sintaxis para cada una [...]]]></description>
			<content:encoded><![CDATA[<p>Estoy con los generadores online. Ayer hice un post cortito sobre una aplicación online que te permitía formatear fecha en mySql. Hoy dejo una nueva aplicación que genera los archivos .htaccess. Los .htacces siempre fueron difícil de hacer, si bien es un documento de texto nunca recuerdo bien como es la sintaxis para cada una de la sentencias. Utilizando ésta página podemos hacerlo de forma gráfica.<br />
<a href="http://www.htaccesseditor.com/en.shtml#a_access"></p>
<p>http://www.htaccesseditor.com/en.shtml#a_access</a></p>
]]></content:encoded>
			<wfw:commentRss>http://digilabs.com.ar/2010/05/programacion/htacess-generator/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

