<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2spanishfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>PHPnight</title>
	
	<link>http://phpnight.com</link>
	<description>Aprender php desde cero</description>
	<lastBuildDate>Thu, 17 Sep 2009 15:15:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/phpnight" type="application/rss+xml" /><feedburner:emailServiceId>phpnight</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fphpnight" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/phpnight" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fphpnight" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fphpnight" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fphpnight" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://add.my.yahoo.com/content?lg=es&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Fphpnight" src="http://eur.i1.yimg.com/eur.yimg.com/i/es/my/addto1.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.feedness.com/alta/http://feeds.feedburner.com/phpnight" src="http://www.feedness.com/ayuda/wp-content/square_b_sh_feed.gif">Subscribe with Feedness</feedburner:feedFlare><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Definir imagen por defecto</title>
		<link>http://feedproxy.google.com/~r/phpnight/~3/5wzrLTwsyUU/</link>
		<comments>http://phpnight.com/definir-imagen-por-defecto/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 15:15:33 +0000</pubDate>
		<dc:creator>Marcelo Ferreiro</dc:creator>
				<category><![CDATA[Recursos]]></category>
		<category><![CDATA[Trucos y tips]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[imagenes]]></category>
		<category><![CDATA[sustitución]]></category>

		<guid isPermaLink="false">http://phpnight.com/?p=179</guid>
		<description>Visto en WebIntenta, comparto con ustedes una forma sencilla para definir una imagen por defecto que se cargue cuando cualquier otra imagen que llamemos no se encuentre.
Simplemente debemos agregar estas 2 líneas en el .htaccess:

?Ver código HTML1
2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^images/.*\.jpg$ /images/default.jpg [L]

Obviamente puedes cambiar la extención (.jpg) y el nombre del archivo por defecto (default.jpg) [...]&lt;img src="http://feeds.feedburner.com/~r/phpnight/~4/5wzrLTwsyUU" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://phpnight.com/definir-imagen-por-defecto/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://phpnight.com/definir-imagen-por-defecto/</feedburner:origLink></item>
		<item>
		<title>Restar dias a una fecha en PHP</title>
		<link>http://feedproxy.google.com/~r/phpnight/~3/gCfbI2_3xbk/</link>
		<comments>http://phpnight.com/restar-dias-a-una-fecha-en-php/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 21:34:30 +0000</pubDate>
		<dc:creator>Marcelo Ferreiro</dc:creator>
				<category><![CDATA[Funciones]]></category>
		<category><![CDATA[Trucos y tips]]></category>
		<category><![CDATA[dias]]></category>
		<category><![CDATA[fecha]]></category>
		<category><![CDATA[horas]]></category>
		<category><![CDATA[resta]]></category>

		<guid isPermaLink="false">http://phpnight.com/?p=176</guid>
		<description>Un post super cortito, pero bien útil para cuando necesitamos restarle días (u horas) a una fecha.
Simplemente tomamos time() que nos da el tiempo actual en segundos y le restamos la cantidad de segundos que querramos (60 para un minuto, 60*60 para una hora, o 24*60*60 para un día entero). Por ejemplo:

?Ver código PHP1
2
3
4
5
6
7
8
// Restamos [...]&lt;img src="http://feeds.feedburner.com/~r/phpnight/~4/gCfbI2_3xbk" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://phpnight.com/restar-dias-a-una-fecha-en-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://phpnight.com/restar-dias-a-una-fecha-en-php/</feedburner:origLink></item>
		<item>
		<title>Pedido personal</title>
		<link>http://feedproxy.google.com/~r/phpnight/~3/MpgchtUgc8Y/</link>
		<comments>http://phpnight.com/pedido-personal/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 13:44:53 +0000</pubDate>
		<dc:creator>Marcelo Ferreiro</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[100% offtopic]]></category>

		<guid isPermaLink="false">http://phpnight.com/?p=164</guid>
		<description>No suelo publicar nada personal en este sitio (para eso tengo mi blog), pero por primera vez haré una excepción.
Mi hermana, lectora de PHPnight, así como de todos mis proyectos, ha participado en un concurso de diseño, el premio del cuál es una beca para poder estudiar la carrera que ella quiere (Diseño de Interiores), [...]&lt;img src="http://feeds.feedburner.com/~r/phpnight/~4/MpgchtUgc8Y" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://phpnight.com/pedido-personal/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://phpnight.com/pedido-personal/</feedburner:origLink></item>
		<item>
		<title>Programación Orientada a Objetos en PHP (Parte I)</title>
		<link>http://feedproxy.google.com/~r/phpnight/~3/rZfKnpcNq6U/</link>
		<comments>http://phpnight.com/programacion-orientada-a-objetos-en-php-parte-i/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 19:34:38 +0000</pubDate>
		<dc:creator>David Tavárez</dc:creator>
				<category><![CDATA[Artículos]]></category>
		<category><![CDATA[Lecciones]]></category>
		<category><![CDATA[clases]]></category>
		<category><![CDATA[conceptos]]></category>
		<category><![CDATA[objetos]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[poo]]></category>
		<category><![CDATA[programación]]></category>

		<guid isPermaLink="false">http://phpnight.com/?p=157</guid>
		<description>Una de las ventajas que ofrece PHP desde su versión 5.0 es la capacidad de utilizar completamente el paradigma de programación que se conoce como Programación Orientada a Objetos (POO de ahora en adelante). POO utiliza &amp;#8220;objetos&amp;#8221; estructuras de datos que consisten en propiedades y métodos. Este paradigma intenta representar las partes de una aplicación [...]&lt;img src="http://feeds.feedburner.com/~r/phpnight/~4/rZfKnpcNq6U" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://phpnight.com/programacion-orientada-a-objetos-en-php-parte-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://phpnight.com/programacion-orientada-a-objetos-en-php-parte-i/</feedburner:origLink></item>
		<item>
		<title>Sistema para controlar visualizaciones de Boletines o Newsletter</title>
		<link>http://feedproxy.google.com/~r/phpnight/~3/9m59vibnM1Y/</link>
		<comments>http://phpnight.com/sistema-control-visualizaciones-boletines-newsletter/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 10:43:18 +0000</pubDate>
		<dc:creator>Marcelo Ferreiro</dc:creator>
				<category><![CDATA[Artículos]]></category>
		<category><![CDATA[Códigos]]></category>
		<category><![CDATA[Recursos]]></category>
		<category><![CDATA[bbdd]]></category>
		<category><![CDATA[boletines]]></category>
		<category><![CDATA[imagenes]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[newsletters]]></category>

		<guid isPermaLink="false">http://phpnight.com/?p=145</guid>
		<description>El otro día tuve que realizar un pequeño script que permitiece guardar logs (registros) de qué usuarios recibían y abrían un boletín o email promocional que se enviaría a una gran base de suscriptores.
La que creo es la mejor opción, aunque por supuesto me encantaría escuchar otras opiniones, es incluir en el HTML del boletín [...]&lt;img src="http://feeds.feedburner.com/~r/phpnight/~4/9m59vibnM1Y" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://phpnight.com/sistema-control-visualizaciones-boletines-newsletter/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://phpnight.com/sistema-control-visualizaciones-boletines-newsletter/</feedburner:origLink></item>
		<item>
		<title>Nueva etapa en PHPnight</title>
		<link>http://feedproxy.google.com/~r/phpnight/~3/FsS5IlhRFuQ/</link>
		<comments>http://phpnight.com/nueva-etapa-en-phpnight/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 19:16:01 +0000</pubDate>
		<dc:creator>Marcelo Ferreiro</dc:creator>
				<category><![CDATA[PHPnight]]></category>

		<guid isPermaLink="false">http://phpnight.com/?p=134</guid>
		<description>La web ha tenido altos y bajos, no en las ganas o el interés por aprender PHP, sino en el ritmo de publicación, debo aceptarlo y pedir disculpas a los usuarios que muchas veces me escriben o dejan comentarios alentando a más.
La buena noticia es que la web va a seguir, y ahora mucho más [...]&lt;img src="http://feeds.feedburner.com/~r/phpnight/~4/FsS5IlhRFuQ" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://phpnight.com/nueva-etapa-en-phpnight/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://phpnight.com/nueva-etapa-en-phpnight/</feedburner:origLink></item>
	</channel>
</rss>
