<?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>THE .NET WAY &#187; PHP</title>
	<atom:link href="http://www.thedotnetway.net/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedotnetway.net</link>
	<description>El blog Tecnológico de Emilio Torrens y Jordi Cladera</description>
	<lastBuildDate>Thu, 29 Jul 2010 08:27:48 +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>Acortar una URL con TinyURL y PHP</title>
		<link>http://www.thedotnetway.net/2010/06/23/acortar-una-url-con-tinyurl-y-php/</link>
		<comments>http://www.thedotnetway.net/2010/06/23/acortar-una-url-con-tinyurl-y-php/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 10:44:57 +0000</pubDate>
		<dc:creator>Emilio Torrens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Trucos]]></category>

		<guid isPermaLink="false">http://www.thedotnetway.net/2010/06/23/acortar-una-url-con-tinyurl-y-php/</guid>
		<description><![CDATA[&#60;?php $url = $_GET['url']; $curl = curl_init(); curl_setopt($curl,CURLOPT_URL,'http://tinyurl.com/api-create.php?url='.$url); curl_setopt($curl,CURLOPT_RETURNTRANSFER,1); curl_setopt($curl,CURLOPT_CONNECTTIMEOUT,5); $rs = curl_exec($curl); curl_close($curl); echo $rs; ?&#62;]]></description>
			<content:encoded><![CDATA[<div id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&lt;?php</pre>
<p><!--CRLF--><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">$url = $_GET[<span style="color: #006080">'url'</span>];</pre>
<p><!--CRLF--><!--CRLF--><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">$curl = curl_init();</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">curl_setopt($curl,CURLOPT_URL,<span style="color: #006080">'http://tinyurl.com/api-create.php?url='</span>.$url);</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">curl_setopt($curl,CURLOPT_CONNECTTIMEOUT,5);</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">$rs = curl_exec($curl);</pre>
<p><!--CRLF--><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">curl_close($curl);</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #0000ff">echo</span> $rs;</pre>
<p><!--CRLF--><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">?&gt;</pre>
<p><!--CRLF--></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.thedotnetway.net/2010/06/23/acortar-una-url-con-tinyurl-y-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ejecutar PHP como scripts de JavaScript</title>
		<link>http://www.thedotnetway.net/2010/02/09/ejecutar-php-como-scripts-de-javascript/</link>
		<comments>http://www.thedotnetway.net/2010/02/09/ejecutar-php-como-scripts-de-javascript/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 11:44:41 +0000</pubDate>
		<dc:creator>Emilio Torrens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.thedotnetway.net/2010/02/09/ejecutar-php-como-scripts-de-javascript/</guid>
		<description><![CDATA[Supongo que esto debe ser valido para cualquier lenguaje, pero bueno yo lo he estado probando con PHP en un proyecto personal que tengo para jugar y aprender un poco La idea es que una dirección url escupa HTML con document.write tiene que implementar esta cabecera “Header(&#34;content-type: application/x-javascript&#34;)” y después el código HTML que queramos. [...]]]></description>
			<content:encoded><![CDATA[<p>Supongo que esto debe ser valido para cualquier lenguaje, pero bueno yo lo he estado probando con PHP en un proyecto personal que tengo para jugar y aprender un poco <img src='http://www.thedotnetway.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>La idea es que una dirección url escupa <a href="http://es.wikipedia.org/wiki/HTML" target="_blank">HTML</a> con <a href="http://en.wikipedia.org/wiki/Dynamic_web_page" target="_blank">document.write</a> tiene que implementar esta cabecera “<em>Header(&quot;content-type: application/x-javascript&quot;)”</em> y después el código HTML que queramos.</p>
<p>Por ejemplo, creamos nuestro holamundo.php con el siguiente código</p>
<p>&lt;?php   <br />$name = $_GET['name'];    <br />Header(&quot;content-type: application/x-javascript&quot;);    <br />echo &quot;document.write(\&quot;Hola &quot;.$name.&quot;\&quot;)&quot;;    <br />?&gt;</p>
<p>añadimos esta línea en nuestra pagina HTML:</p>
<p>&lt;script type=&quot;text/javascript&quot; src=&quot;http://servidor.com/holamundo.php?name=Emilio&quot;&gt;   <br />&lt;/script&gt;</p>
<p>Y se pintara el Hola Emilio en la web <img src='http://www.thedotnetway.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>A partir de eso puedes complicarlo todo lo que quieras y puede servir para ejecutar código php en paginas que corran en servidores sin php o cosas de esas …</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedotnetway.net/2010/02/09/ejecutar-php-como-scripts-de-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Aplicaciones Facebook</title>
		<link>http://www.thedotnetway.net/2009/06/12/aplicaciones-facebook/</link>
		<comments>http://www.thedotnetway.net/2009/06/12/aplicaciones-facebook/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 11:26:23 +0000</pubDate>
		<dc:creator>Emilio Torrens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.thedotnetway.net/2009/06/12/aplicaciones-facebook/</guid>
		<description><![CDATA[Ayer empecé a investigar y a documentarme un poco para programar una aplicación para Facebook, la idea final es montar un sistema de geolocalizacion, una parte servidora y una parte cliente que correría en IPhone, Windows Mobile y Android , y permitiera geolocalizar en Facebook al usuario cuando hace el update del status usando el [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.thedotnetway.net/wp-content/uploads/2009/06/doyouhaceafacebook.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="doyouhaceafacebook" border="0" alt="doyouhaceafacebook" align="left" src="http://www.thedotnetway.net/wp-content/uploads/2009/06/doyouhaceafacebook-thumb.jpg" width="244" height="183" /></a>Ayer empecé a investigar y a documentarme un poco para programar una aplicación para <a href="http://www.facebook.com/" target="_blank">Facebook</a>, la idea final es montar un sistema de geolocalizacion, una parte servidora y una parte cliente que correría en IPhone, Windows Mobile y Android , y permitiera geolocalizar en Facebook al usuario cuando hace el update del status usando el GPS del móvil. </p>
<p>Se que es ambicioso como primer proyecto así que tengo pensado hacer algunas aplicaciones mas sencillas antes para ver como va el tema.</p>
<p>Aun tengo que ver si consigo liar a Jordi y alguno mas para que me ayuden ya que es un proyecto free que tendría que hacer en mi tiempo libre y bueno tampoco tengo tanto tiempo libre.</p>
<p>Con eso de que el proyecto me lo tengo que financiar yo mismo tengo que tomar la decisión de donde alojarlo, porque las aplicaciones de facebook las tienes que alojar tu según he leído, dependiendo de eso usare el api <a href="http://es.wikipedia.org/wiki/.php" target="_blank">php</a> que te proporciona Facebook o <a href="http://www.nikhilk.net/FacebookNET.aspx" target="_blank">Facebook.NET</a> que es un API para programar con el .NET Framework. </p>
<p>Si usamos Facebook.NET será mas fácil pero esta el tema de los costes, luego necesitare alojarlo en Windows Server + IIS (y en los servidores de la oficina ya no me dejan alojar mas cositas personales <img src='http://www.thedotnetway.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), si uso el api php de facebook lo puedo alojar aquí mismo, pero nos llevara mas trabajo ya que no es nuestra especialidad, así que no se que hacer, sugerencias? …</p>
<p>Aquí dejo algunas referencias por si os interesa meteros en este tema:</p>
<ul>
<li><a href="http://developers.facebook.com/" target="_blank">Facebook API</a> </li>
<li><a href="http://www.nikhilk.net/FacebookNET.aspx" target="_blank">Facebook.NET API</a> </li>
<li><a href="http://www.stevetrefethen.com/blog/VSNETStarterKitForNikhilKotharisFacebookNET.aspx" target="_blank">Visual Studio Starter Kit para Facebook.NET</a> </li>
<li><a href="http://www.berriart.com/2008/12/01/crear-una-aplicacion-para-facebook/" target="_blank">Como crear una Aplicación Facebook</a> </li>
</ul>
<p>Bueno ya iré posteando como avanza el proyecto y si a alguno le interesa apuntarse mailme <img src='http://www.thedotnetway.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedotnetway.net/2009/06/12/aplicaciones-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP y Windows</title>
		<link>http://www.thedotnetway.net/2009/05/13/php-y-windows/</link>
		<comments>http://www.thedotnetway.net/2009/05/13/php-y-windows/#comments</comments>
		<pubDate>Wed, 13 May 2009 10:26:59 +0000</pubDate>
		<dc:creator>Emilio Torrens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQLServer]]></category>

		<guid isPermaLink="false">http://www.thedotnetway.net/2009/05/13/php-y-windows/</guid>
		<description><![CDATA[No por programar en PHP tienes que estar casado con Linux pero la verdad es que eso es lo que suele pasar, nosotros mismos hemos tenido proyectos con la parte servidora corriendo en Windows, SQLServer e IIS y el UI en PHP en Linux obligando al cliente a mantener dos tipos de servidores con los [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.thedotnetway.net/wp-content/uploads/2009/05/php-lab.png"><img title="php_lab" style="border-top-width: 0px; display: inline; border-left-width: 1px; border-bottom-width: 0px; margin-left: 0px; margin-right: 0px; border-right-width: 0px" height="95" alt="php_lab" src="http://www.thedotnetway.net/wp-content/uploads/2009/05/php-lab-thumb.png" width="95" align="left" border="0" /></a> </p>
<p>No por programar en <a href="http://es.wikipedia.org/wiki/.php" target="_blank">PHP</a> tienes que estar casado con Linux pero la verdad es que eso es lo que suele pasar, nosotros mismos hemos tenido proyectos con la parte servidora corriendo en Windows, SQLServer e IIS y el UI en PHP en Linux obligando al cliente a mantener dos tipos de servidores con los problemas y gastos que puede generar eso.</p>
<p>El otro día ya estuve escribiendo sobre las ventajas del PHP, rápido y sencillo (por no hablar de la cantidad de programadores que puedes encontrar), por lo que no es descabellado plantear un proyecto con el UI en web en PHP mientras toda la parte servidora la tienes en .NET, con SQLServer como base de datos e IIS como servidor de aplicaciones.</p>
<p>La gente de Microsoft ha preparado un KIT de entrenamiento para los programadores de PHP, en este KIT tienes ejemplos y documentación para usar IIS y SQLServer desde PHP, lo puedes <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=c8498c9b-a85a-4afa-90c0-593d0e4850cb" target="_blank">descargar desde aquí</a> y encontraras:</p>
<p>PHP &amp; SQL Server Demos.    <br />Integrating SQL Server Geo-Spatial with PHP.     <br />SQL Server Reporting Services and PHP.     <br />PHP &amp; SQL Server Hands On Labs.     <br />Introduction to Using SQL Server with PHP.     <br />Using Full Text Search over Office Documents in PHP.     <br />PHP on Windows Hands On Labs.     <br />IIS Access Control Features for PHP.     <br />Using IIS 7.0 Media Features in a PHP Application.     <br />Troubleshooting PHP.     <br />Migrating PHP Applications to IIS 7.0. </p>
<p>A disfrutarlo <img src='http://www.thedotnetway.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />     </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedotnetway.net/2009/05/13/php-y-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sobre plataformas de desarrollo</title>
		<link>http://www.thedotnetway.net/2009/04/22/sobre-plataformas-de-desarrollo/</link>
		<comments>http://www.thedotnetway.net/2009/04/22/sobre-plataformas-de-desarrollo/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 14:02:46 +0000</pubDate>
		<dc:creator>Emilio Torrens</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Herramientas]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://thedotnetway.emiliotorrens.com/?p=155</guid>
		<description><![CDATA[Ahora que los dos blogs están corriendo en PHP y MySQL y como siempre he sido un ultra defensor de las plataformas digamos “empresariales” (.NET, IIS, SQLServer o Java, Apache, Oracle) para correr aplicaciones, pues tendré que contar porque lo he hecho y lo que he aprendido sobre esto Durante un tiempo hemos tenido thedotnetway.net [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://thedotnetway.emiliotorrens.com/wp-content/uploads/2009/04/wordpressmug.jpg"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin-left: 0px; margin-right: 0px; border-right-width: 0px" title="wordpress-mug" src="http://thedotnetway.emiliotorrens.com/wp-content/uploads/2009/04/wordpressmug-thumb.jpg" border="0" alt="wordpress-mug" width="244" height="164" align="left" /></a> Ahora que los dos blogs están corriendo en <a href="http://es.wikipedia.org/wiki/.php" target="_blank">PHP</a> y <a href="http://es.wikipedia.org/wiki/MySQL" target="_blank">MySQL</a> y como siempre he sido un ultra defensor de las plataformas digamos “empresariales” (.NET, IIS, SQLServer o Java, Apache, Oracle) para correr aplicaciones, pues tendré que contar porque lo he hecho y lo que he aprendido sobre esto <img src='http://www.thedotnetway.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Durante un tiempo hemos tenido thedotnetway.net corriendo en IIS, ASP.NET y SQLServer, pero el mantenimiento era una pesadez, los recursos necesarios eran caros, había que hostearlos en un Windows Server con SQL Server 2005, y todo eso por un blog …</p>
<p><a href="http://thedotnetway.emiliotorrens.com/wp-content/uploads/2009/04/mysql-logo.jpg"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin-left: 0px; margin-right: 0px; border-right-width: 0px" title="mysql_logo" src="http://thedotnetway.emiliotorrens.com/wp-content/uploads/2009/04/mysql-logo-thumb.jpg" border="0" alt="mysql_logo" width="131" height="97" align="left" /></a> Así que empecé  a mirar el Software de <a href="http://www.wordpress.com" target="_blank">WordPress</a>, me baje una versión, unos temas, un editor de PHP (<a href="http://www.zend.com/en/" target="_blank">Zend Development Enviroment</a>) , un alojamiento web barato (<a href="http://www.1and1.com/" target="_blank">1and1</a>) y por cuatro duros y unas cuantas horas de personalización (php y <a href="http://es.wikipedia.org/wiki/Css" target="_blank">css</a>) están los dos blogs en marcha <img src='http://www.thedotnetway.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Después de esto, aunque nunca elegiría como primera opción esta plataforma para desarrollar una aplicación empresarial para alguno de mis clientes, si que entiendo el mercado y la expansión que tiene esta plataforma, es sencillo y es barato, como contras creo que si la aplicación se te hace grande no hay quien lo mantenga, pero este no es el caso <img src='http://www.thedotnetway.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedotnetway.net/2009/04/22/sobre-plataformas-de-desarrollo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
