<?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>w5Angel &#187; PHP</title>
	<atom:link href="http://angel.w5jobs.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://angel.w5jobs.com</link>
	<description>Tips, empresas, informatica,  encuestas y más...</description>
	<lastBuildDate>Mon, 22 Feb 2010 23:55:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>W5std Estandard de programación PHP</title>
		<link>http://angel.w5jobs.com/w5-estandard-de-programacion-php/</link>
		<comments>http://angel.w5jobs.com/w5-estandard-de-programacion-php/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 02:46:02 +0000</pubDate>
		<dc:creator>Angel</dc:creator>
				<category><![CDATA[Daily]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Programacion PHP]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://angel.w5jobs.com/?p=182</guid>
		<description><![CDATA[Introducción
El presente documento es un estandar de programación que puede ser utilizado para aplicacciones hechas en  PHP. Algunas partes del documento pueden ser compatibles con otros lenguajes de programación.
El objetivo:  dar las herramientas que permitan una mejor organizacion en el código, facilitar el entendimiento del mismo por los programadores y optimizar el desarrollo de aplicaciones [...]]]></description>
			<content:encoded><![CDATA[<h2><strong>Introducción</strong></h2>
<p>El presente documento es un estandar de programación que puede ser utilizado para aplicacciones hechas en  PHP. Algunas partes del documento pueden ser compatibles con otros lenguajes de programación.</p>
<p><span style="text-decoration: underline;">El objetivo</span>:  dar las herramientas que permitan una mejor organizacion en el código, facilitar el entendimiento del mismo por los programadores y optimizar el desarrollo de aplicaciones WEB en la plataforma PHP.</p>
<p>Siguiendo los estandares de este documento podrás:</p>
<ul>
<li> Tener Legibilidad en el código</li>
<li>Conocer el historial de cambios en los archivos programados</li>
<li>La descipcion de cada archivo</li>
<li>Quien ha estado involucrado en el desarrollo del archivo</li>
<li>Encontrar diferencias de lenguages como  SQL, HTML,PHP,JavaScript</li>
<li>Identificar variables pre definidas, variables locales</li>
<li>Hacer buena practica de programacion</li>
<li>Reducir tiempo de ejecucion en algunos procesos.</li>
</ul>
<h2><strong>Desarrollo </strong></h2>
<h3><strong>Encabezado de archivos</strong></h3>
<p>Todos los archivos .php deben contener un &#8220;flowerbox&#8221; o bien caja de modificaciones, la cual contiene <span style="text-decoration: underline;">nombre del programa</span>, <span style="text-decoration: underline;">descripción</span>, <span style="text-decoration: underline;">historial de modificaciones</span>, <span style="text-decoration: underline;">relacion de modificaciones con proyectos de desarrollo</span>.</p>
<p>Ej.</p>
<pre><span style="color: #ff9900;font-size:12px">/*************************************************************
**  Programa:  config.php
**  Descripcion: Archivo de configuracion del sistema HelpDesk
**  proyecto    fecha        por            descripcion
**  ----------  ---------  ----------- ----------------
**  app00001   31/01/09   mmendoza  Creado.
**************************************************************/</span></pre>
<h3>Extenciones de archivos</h3>
<p>Nota: <span style="color: #ff0000;">no utilizar extenciones en MAYUSCULAS</span></p>
<ol>
<li>Archivos php                    .php</li>
<li>Clases php                          .class.php</li>
<li>JavaScript                         .js</li>
<li>Estilos css                          .css</li>
</ol>
<h3>Comentarios en código</h3>
<ol>
<li><span style="color: #008000;">Siempre Commentar donde finaliza cada funcion</span></li>
<li>Commentar donde se considere que el proceso es dificil de identificar el inicio y el final</li>
</ol>
<pre><span style="color: #0000ff;font-size:12px"><span style="color: #ff9900;">/*funcion de validacion de correo*/</span>
function </span>validaMail<span style="color: #0000ff;">(</span>$pMail<span style="color: #0000ff;">) {</span>
   <span style="color: #339966;">if</span><span style="color: #0000ff;">(</span><span style="color: #0000ff;">ereg(</span><span style="color: #ff0000;">"^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@+([_a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]{2,200}\.[a-zA-Z]{2,6}$"</span>, $pMail <span style="color: #0000ff;">) ){</span>
       <span style="color: #339966;">return </span><span style="color: #339966;">true</span>;
   <span style="color: #0000ff;">}</span><span style="color: #339966;">else</span><span style="color: #0000ff;">{</span>
    <span style="color: #339966;">   return false</span>;
   <span style="color: #0000ff;">}</span> <span style="color: #ff9900;">/*end else*/</span>
<span style="color: #0000ff;">}</span> <span style="color: #ff9900;">/*end validaMail()*/</span></pre>
<h3><strong><strong>Caracteres especiales</strong></strong></h3>
<ul>
<li><span style="color: #ff0000;">No usar acentos</span> en el código, incluso en el codigo comentado</li>
</ul>
<p>Ej. Mal <span style="color: #ff0000;">/*configuración de la clase*/</span></p>
<p><span style="color: #ff0000;"> <span style="color: #000000;">Bien</span> <span style="color: #339966;"> /*configuracion de la clase*/</span><br />
</span></p>
<ul>
<li>Usar caracteres entre [A-Z , a-z, 0-9]</li>
<li>Para impresion de HTML con caracteres especiales utilizar el codigo especificado en html para dicho caracter.</li>
</ul>
<p>Ej. <span style="color: #008000;">Bien </span>&lt;? echo &#8216;Guardar Sesi&amp;oacute;n&#8217;;?&gt;</p>
<p><span style="color: #ff0000;"> Mal</span> &lt;? echo &#8216;Guardar Sesión&#8217;;?&gt;</p>
<p>Trata de imprimir el menos codiho Html posible desde PHP. Eso permite que PHP solo ejecute procesos de codigo en los que se requiera php y el Html ya esta listo para ser reconocido por el cliente, por lo tanto optimizas el procesamiento de ejecucion de php.</p>
<p>Ej.</p>
<p><span style="color: #ff0000;">No Recomendado</span>&lt;?php if($ok==true){ echo &#8216;&lt;strong&gt;Se ejecuto la consulta&lt;/strong&gt;&#8217;;&#8217; } ?&gt;</p>
<p><span style="color: #008000;">Recomendado </span>&lt;?php if($ok==true){ ?&gt; &lt;strong&gt;Se ejecuto la consulta&lt;/strong&gt;&lt;? } ?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://angel.w5jobs.com/w5-estandard-de-programacion-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Current technologies WEB 2.0</title>
		<link>http://angel.w5jobs.com/current-technologies/</link>
		<comments>http://angel.w5jobs.com/current-technologies/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 15:52:13 +0000</pubDate>
		<dc:creator>Angel</dc:creator>
				<category><![CDATA[Daily]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://angel.w5jobs.com/?p=51</guid>
		<description><![CDATA[To be on top of the Web Pages You need to use a lot of plug-ins on your web page. What does it mean?
Currently you can not use just html code to create a web page, also you need to combine several technologies in order to get a WEB Site called WEB 2.0,  so that [...]]]></description>
			<content:encoded><![CDATA[<p>To be on top of the Web Pages You need to use a lot of plug-ins on your web page. What does it mean?</p>
<p>Currently you can not use just html code to create a web page, also you need to combine several technologies in order to get a WEB Site called WEB 2.0,  so that you will have a great benefits.</p>
<p>The tools I may recommend  you are :</p>
<ul>
<li>Cgi language  (should be <strong><span style="color: #800000;">PHP</span></strong>, Python, Perl,  JSP, ASPX,  or another you can use to create a dynamic page)</li>
<li>DOM</li>
<li>AJAX</li>
<li>Javascript</li>
<li>RSS</li>
</ul>
<p>I will be posting all the benefits you can find for a web page 2.0 and many tips about how to implement a web page step by step.</p>
<div class="wp-caption alignnone" style="width: 266px"><a href="http://w5empleos.com" target="_blank"><img title="w5jobs la bolsa de empleo que evolucionara en mexico" src="http://www.w5jobs.com/VISTA/themes-account/default/img/w5jobs-navidad.png" border="0" alt="empleos trabajo" width="256" height="256" /></a><p class="wp-caption-text">Bolsa de Trabajo México</p></div>
]]></content:encoded>
			<wfw:commentRss>http://angel.w5jobs.com/current-technologies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
