<?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>José Robinson &#187; php</title>
	<atom:link href="http://joserobinson.com/blog/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://joserobinson.com</link>
	<description>Diseño, desarrollo y posicionamiento web</description>
	<lastBuildDate>Sun, 18 Jul 2010 02:55:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Expresiones Regulares y PHP</title>
		<link>http://joserobinson.com/blog/expresiones-regulares-y-php/</link>
		<comments>http://joserobinson.com/blog/expresiones-regulares-y-php/#comments</comments>
		<pubDate>Mon, 17 May 2010 04:10:17 +0000</pubDate>
		<dc:creator>Jose Robinson</dc:creator>
				<category><![CDATA[webdev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[regexp]]></category>

		<guid isPermaLink="false">http://joserobinson.com/blog/?p=262</guid>
		<description><![CDATA[He encontrado un excelente artículo sobre expresiones regulares que me gustaría compartir. Para mi las expresiones regulares son como un haz debajo de la manga que puedo sacar en algunos apuros, una herramienta que considero de mucha utilidad. Aquí te muestro un articulo que en mi opinión merece la pena. FUENTE: Expresiones Regulares]]></description>
			<content:encoded><![CDATA[<p>He encontrado un excelente artículo sobre expresiones regulares que me gustaría compartir. Para mi las expresiones regulares son como un haz debajo de la manga que puedo sacar en algunos apuros, una herramienta que considero de mucha utilidad.</p>
<p>Aquí te muestro un articulo que en mi opinión merece la pena.</p>
<p>FUENTE: <a href="http://www.ignside.net/man/php/regex.php" target="_blank">Expresiones Regulares</a></p>
]]></content:encoded>
			<wfw:commentRss>http://joserobinson.com/blog/expresiones-regulares-y-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extraer textos en PDF desde PHP</title>
		<link>http://joserobinson.com/blog/extraer-textos-en-pdf-desde-php/</link>
		<comments>http://joserobinson.com/blog/extraer-textos-en-pdf-desde-php/#comments</comments>
		<pubDate>Fri, 07 May 2010 13:28:59 +0000</pubDate>
		<dc:creator>Jose Robinson</dc:creator>
				<category><![CDATA[webdev]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://joserobinson.com/blog/?p=303</guid>
		<description><![CDATA[Interesante librería que nos permite extraer textos de ficheros PDF. FUENTE: Extraer textos en PDF desde PHP]]></description>
			<content:encoded><![CDATA[<p>Interesante librería que nos permite extraer textos de ficheros PDF.</p>
<p>FUENTE: <a href="http://sentidoweb.com/2010/05/07/extraer-textos-en-pdf-desde-php.php">Extraer textos en PDF desde PHP</a></p>
]]></content:encoded>
			<wfw:commentRss>http://joserobinson.com/blog/extraer-textos-en-pdf-desde-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Excel Reader: manipula ficheros de Excel</title>
		<link>http://joserobinson.com/blog/php-excel-reader-manipula-ficheros-de-excel/</link>
		<comments>http://joserobinson.com/blog/php-excel-reader-manipula-ficheros-de-excel/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 14:40:28 +0000</pubDate>
		<dc:creator>Jose Robinson</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://joserobinson.com/blog/?p=298</guid>
		<description><![CDATA[PHP Excel Reader es una librería en PHP que te permite manipular ficheros XLS (Microsoft Excel), permitiéndote leer y modificar el contenido de las hojas del fichero de forma aparentemente sencilla. FUENTE: Parse &#038; Retrieve Content from XLS Files]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/php-excel-reader/">PHP Excel Reader</a> es una librería en PHP que te permite manipular ficheros XLS (Microsoft Excel), permitiéndote leer y modificar el contenido de las hojas del fichero de forma aparentemente sencilla.</p>
<p>FUENTE: <a href="http://www.webappers.com/2010/04/29/php-excel-reader-parse-retrieve-content-from-xls-files/">Parse &#038; Retrieve Content from XLS Files</a></p>
]]></content:encoded>
			<wfw:commentRss>http://joserobinson.com/blog/php-excel-reader-manipula-ficheros-de-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leer cualquier tipo de imágen en PHP de forma sencilla</title>
		<link>http://joserobinson.com/blog/leer-cualquier-tipo-de-imagen-en-php-de-forma-sencilla/</link>
		<comments>http://joserobinson.com/blog/leer-cualquier-tipo-de-imagen-en-php-de-forma-sencilla/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 03:59:29 +0000</pubDate>
		<dc:creator>Jose Robinson</dc:creator>
				<category><![CDATA[webdev]]></category>
		<category><![CDATA[imagenes]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://joserobinson.com/blog/?p=247</guid>
		<description><![CDATA[Aquí les muestro una forma sencilla de leer una imagen, ya sea para redimensionarla o cualquier otra cosa, pero sin tener que depender de la extensión. Normalmente verificamos la extensión de la imagen para luego llamar la función correspondiente (imagecreatefromjpeg, imagecreatefromgif, etc.) para crear el recurso a usar. Una forma fácil y que te ahorrara [...]]]></description>
			<content:encoded><![CDATA[<p>Aquí les muestro una forma sencilla de leer una imagen, ya sea para redimensionarla o cualquier otra cosa, pero sin tener que depender de la extensión. Normalmente verificamos la extensión de la imagen para luego llamar la función correspondiente (imagecreatefromjpeg, imagecreatefromgif, etc.) para crear el recurso a usar. Una forma fácil y que te ahorrara un par de líneas de código (lo que siempre busca un buen programador).</p>
<p>FUENTE: <a href="http://sentidoweb.com/2010/02/01/laboratorio-leer-cualquier-tipo-de-imagen-en-php-de-forma-sencilla.php" target="_blank">Laboratorio: leer cualquier tipo de imágen en PHP de forma sencilla</a></p>
]]></content:encoded>
			<wfw:commentRss>http://joserobinson.com/blog/leer-cualquier-tipo-de-imagen-en-php-de-forma-sencilla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forzar la descarga de archivos con PHP</title>
		<link>http://joserobinson.com/blog/forzar-la-descarga-de-archivos-con-php/</link>
		<comments>http://joserobinson.com/blog/forzar-la-descarga-de-archivos-con-php/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 03:21:53 +0000</pubDate>
		<dc:creator>Jose Robinson</dc:creator>
				<category><![CDATA[webdev]]></category>
		<category><![CDATA[archivos]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://joserobinson.com/blog/?p=283</guid>
		<description><![CDATA[Esta es una versión mejorada de la función force_download que encontré en 21 Really Useful &#38; Handy PHP Code Snippets y publique en Función PHP para forzar la descarga de archivos. Digo mejorada por que permite pasarle algunos parámetros para hacerla mas flexible. function download_file($filename, $name = NULL, $mime_type = 'application/octet-stream') { if (!is_file($filename)) { header('HTTP/1.0 [...]]]></description>
			<content:encoded><![CDATA[<p>Esta es una versión mejorada de la función <strong>force_download</strong> que encontré en <a href="http://webdeveloperplus.com/php/21-really-useful-handy-php-code-snippets/" target="_blank">21 Really Useful &amp; Handy PHP Code Snippets</a> y publique en <a href="http://joserobinson.com/blog/funcion-php-para-forzar-la-descarga-de-archivos/" target="_blank">Función PHP para forzar la descarga de archivos</a>. Digo mejorada por que permite pasarle algunos parámetros para hacerla mas flexible.<br />
<span id="more-283"></span></p>
<pre>
function download_file($filename, $name = NULL, $mime_type = 'application/octet-stream') {

	if (!is_file($filename)) {
		header('HTTP/1.0 404 Not Found', TRUE, 404);
		return FALSE;
	}

	$name = is_null($name) ? basename($filename) : $name;
	$size = filesize($filename);

	header('Content-Description: File Transfer');
	header("Content-Disposition: attachment; filename=$name");
	header("Content-Type: $mime_type");
	header("Content-Transfer-Encoding: binary");
	header('Expires: 0');
	header('Pragma: no-cache');
	header("Content-Length: $size");

	if(@readfile($filename) === FALSE) {
		header('HTTP/1.0 500 Internal Server Error', TRUE, 500);
	}
}
</pre>
<p>Forma de uso:</p>
<pre>
download_file('archivo55.avi');
</pre>
<p>En el segundo parámetro se puede indicar con que nombre el archivo debe descargarse por defecto.</p>
<pre>
download_file('archivo55.avi', 'pelicula.avi');
</pre>
<p>Y en el tercer parámetro se puede indicar el mime-type del archivo.</p>
<pre>
download_file('archivo55.avi', 'pelicula.avi', 'video/x-msvideo');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://joserobinson.com/blog/forzar-la-descarga-de-archivos-con-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Traductor utilizando Google AJAX Language API</title>
		<link>http://joserobinson.com/blog/traductor-utilizando-google-ajax-language-api/</link>
		<comments>http://joserobinson.com/blog/traductor-utilizando-google-ajax-language-api/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 15:53:25 +0000</pubDate>
		<dc:creator>Jose Robinson</dc:creator>
				<category><![CDATA[webdev]]></category>
		<category><![CDATA[google-api]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://joserobinson.com/blog/?p=73</guid>
		<description><![CDATA[Aqui les pongo ejemplo de como hacer un traductor sencillo utilizando Google AJAX Language API. DEMO DESCARGAR]]></description>
			<content:encoded><![CDATA[<p>Aqui les pongo ejemplo de como hacer un traductor sencillo utilizando <a href="http://code.google.com/apis/ajaxlanguage/documentation/" target="_blank">Google AJAX Language API</a>.</p>
<p class="article-resource"><a class="demo-link" href="http://joserobinson.com/blog/dl/scripts/traductor.php" target="_blank">DEMO</a> <a class="download-link" href="http://joserobinson.com/blog/dl/scripts/traductor.txt" target="_blank">DESCARGAR</a></p>
]]></content:encoded>
			<wfw:commentRss>http://joserobinson.com/blog/traductor-utilizando-google-ajax-language-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Función PHP para forzar la descarga de archivos</title>
		<link>http://joserobinson.com/blog/funcion-php-para-forzar-la-descarga-de-archivos/</link>
		<comments>http://joserobinson.com/blog/funcion-php-para-forzar-la-descarga-de-archivos/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 12:45:40 +0000</pubDate>
		<dc:creator>Jose Robinson</dc:creator>
				<category><![CDATA[webdev]]></category>
		<category><![CDATA[archivos]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://joserobinson.com/blog/?p=166</guid>
		<description><![CDATA[El título lo dice todo: function force_download($file) { if ((isset($file)) &#38;&#38; (file_exists($file))) { header("Content-length: ".filesize($file)); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="' . $file . '"'); readfile("$file"); } else  { echo "No se ha seleccionado ningún fichero"; } } FUENTE: 21 Really Useful &#38; Handy PHP Code Snippets]]></description>
			<content:encoded><![CDATA[<p>El título lo dice todo:</p>
<pre>function force_download($file)
{
    if ((isset($file)) &amp;&amp; (file_exists($file)))
    {
       header("Content-length: ".filesize($file));
       header('Content-Type: application/octet-stream');
       header('Content-Disposition: attachment; filename="' . $file . '"');
       readfile("$file");
    }
    else
    {
       echo "No se ha seleccionado ningún fichero";
    }
}</pre>
<p>FUENTE: <a href="http://webdeveloperplus.com/php/21-really-useful-handy-php-code-snippets/" target="_blank">21 Really Useful &amp; Handy PHP Code Snippets</a></p>
]]></content:encoded>
			<wfw:commentRss>http://joserobinson.com/blog/funcion-php-para-forzar-la-descarga-de-archivos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ejecutar comandos en la Shell desde PHP</title>
		<link>http://joserobinson.com/blog/ejecutar-comandos-en-la-shell-desde-php/</link>
		<comments>http://joserobinson.com/blog/ejecutar-comandos-en-la-shell-desde-php/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 23:41:22 +0000</pubDate>
		<dc:creator>Jose Robinson</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[comandos]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://joserobinson.com/blog/?p=162</guid>
		<description><![CDATA[De vez en cuando nos vemos en la necesidad de ejecutar algún comando en la Shell, en el servidor que tenemos como alojamiento web, pero surge el inconveniente de que no siempre tenemos acceso a ello. Para buena fortuna aquí hay un articulo sobre como implementar lo que llamo &#8220;consola web&#8221;, para quitarnos este fastidioso [...]]]></description>
			<content:encoded><![CDATA[<p>De vez en cuando nos vemos en la necesidad de ejecutar algún comando en la Shell, en el servidor que tenemos como alojamiento web, pero surge el inconveniente de que no siempre tenemos acceso a ello. Para buena fortuna aquí hay un articulo sobre como implementar lo que llamo &#8220;consola web&#8221;, para quitarnos este fastidioso problema de encima.</p>
<p>FUENTE: <a title="Permanent Link: How to Write a PHP Script to Run Shell Commands from Browser" rel="bookmark" href="http://php-html.net/tutorials/how-to-write-a-php-script-to-run-shell-commands-from-browser/" target="_blank">How to Write a PHP Script to Run Shell Commands from Browser</a></p>
]]></content:encoded>
			<wfw:commentRss>http://joserobinson.com/blog/ejecutar-comandos-en-la-shell-desde-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enviar datos por post con PHP</title>
		<link>http://joserobinson.com/blog/enviar-datos-por-post-con-php/</link>
		<comments>http://joserobinson.com/blog/enviar-datos-por-post-con-php/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 01:04:35 +0000</pubDate>
		<dc:creator>Jose Robinson</dc:creator>
				<category><![CDATA[webdev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[sockets]]></category>

		<guid isPermaLink="false">http://joserobinson.com/blog/?p=91</guid>
		<description><![CDATA[Con esta función puedes hacer una petición con el método POST y enviar datos abriendo una conexión por socket. Para hacer una petición simplemente necesitas esto: $data = array('nombre' =&#62; 'Pancho','apellido' =&#62; 'Villa'); $result = post_request('http://localhost/test.php', $data); Además puedes incluir cabeceras adicionales en la petición: $data = array('nombre' =&#62; 'Pancho','apellido' =&#62; 'Villa'); $headers = array('X-AppID' [...]]]></description>
			<content:encoded><![CDATA[<p>Con esta función puedes hacer una petición con el método POST y enviar datos abriendo una conexión por socket.<span id="more-91"></span></p>
<p>Para hacer una petición simplemente necesitas esto:</p>
<pre>$data = array('nombre' =&gt; 'Pancho','apellido' =&gt; 'Villa');

$result = post_request('http://localhost/test.php', $data);</pre>
<p>Además puedes incluir cabeceras adicionales en la petición:</p>
<pre>$data = array('nombre' =&gt; 'Pancho','apellido' =&gt; 'Villa');

$headers = array('X-AppID' =&gt; 'APP1');

$result = post_request('http://localhost/test.php', $data, $headers);</pre>
<p>Esta función retorna el resultado crudo que devuelve el servidor al cual se le hizo la petición.</p>
<p class="article-resource"><a class="download-link" href="http://joserobinson.com/blog/dl/scripts/post_request.zip" target="_blank">DESCARGAR</a></p>
]]></content:encoded>
			<wfw:commentRss>http://joserobinson.com/blog/enviar-datos-por-post-con-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crear archivos ZIP con PHP</title>
		<link>http://joserobinson.com/blog/crear-archivos-zip-con-php/</link>
		<comments>http://joserobinson.com/blog/crear-archivos-zip-con-php/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 01:50:04 +0000</pubDate>
		<dc:creator>Jose Robinson</dc:creator>
				<category><![CDATA[webdev]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://joserobinson.com/blog/?p=67</guid>
		<description><![CDATA[Interesante articulo sobre como crear archivos ZIP utilizando PHP. Basta decir que esta bien sencillo. FUENTE: Creando archivos ZIP con PHP]]></description>
			<content:encoded><![CDATA[<p>Interesante articulo sobre como crear archivos ZIP utilizando PHP. Basta decir que esta bien sencillo.</p>
<p>FUENTE: <a href="http://www.tufuncion.com/zipfile" target="_blank">Creando archivos ZIP con PHP</a></p>
]]></content:encoded>
			<wfw:commentRss>http://joserobinson.com/blog/crear-archivos-zip-con-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
