How to write and read files from php
This is a simple and basic example about how to write and read files from php, this code shows you the minimal use of fputs() fclose(), fopen().
Read the rest of this entry »This is a simple and basic example about how to write and read files from php, this code shows you the minimal use of fputs() fclose(), fopen().
Read the rest of this entry »Estuve peleando como pendejo contra el puto encoding de html en Internet Explorer, por que resulta que la mamada esa no sabe interpretar el meta tag <meta http-equiv=”Content-Type” content=”text/html; charset=utf8″ /> y fué un verdadero pedo encontrar la sintáxis adecuada de htmlentities() para que funcionara bien, después de mucho interpretar el manual, dejo a su [...]
Read the rest of this entry »Primero, un poco de contexto… En el jale tengo que hacer un query para un mini-reporte que servirá de guía para “X” area, así que hice un query usando la siguiente instrucción: *El SGBDR es PostgreSQL SELECT pi.anio,pi.proyecto,pp.area,m.meta,c.promesa ,c.avance,c.comentarios,((c.avance / c.cantidad ) * 100) as porcentaje FROM piezas pi FULL JOIN participantes_proyecto pp ON pi.proins_clave_anio [...]
Read the rest of this entry »Descripción de envío de parametros desde javascript usando prototype a un php usando el framework CodeIgniter y el MVC.
Read the rest of this entry »He estado pensando acerca de unas cuantas cosas que he hecho en PHP con CodeIgniter, me dí cuenta que sí en una función de PHP recibes 1 solo parametro entre controladores y modelos te ahorras unos cuantos teclazos…. Ejemplo de caso habitual de paso de parametros entre controlador y modelo: ****Controlador***** <?php if (! defined(‘BASEPATH’) [...]
Read the rest of this entry »Very quick introduction to DRY model suggestion.
Read the rest of this entry »