content top

Crear archivos ZIP con PHP

Crear archivos ZIP con PHP

zipfile.php.tar En esta ocasión veremos la forma de crear archivos comprimidos en formato ZIP. Para este ejemplo utilizaremos la clase zipfile escrita por Eric Mueller y muy bien explicada en Creating ZIP files with PHP. Descargando la clase zipfile Lo primero es descargar la clase zipfile desde zipfile.inc.txt y renombrarla a zipfile.php. Esta clase tiene dos metodos add_dir() y add_file() que permite agregar una carpeta o un archivo al...

Read More

Crear Archivos excel con perl

Crear Archivos excel con perl

fuente: http://lena.franken.de/perl_hier/excel.html Create Excelfile You don’t need Win32 to create Excel-files because the format is standardized. So it’s possible to create excel-files in Linux. I use it to regularly create financial reports from a database. This is how you create the Spreadsheet: use strict; use warnings; use Date::Calc; use Spreadsheet::WriteExcel; use Spreadsheet::WriteExcel::Utility; our $workbook =...

Read More

CJuiDialog and AjaxSubmitButton

CJuiDialog and AjaxSubmitButton

Post original en: http://www.yiiframework.com/wiki/72/cjuidialog-and-ajaxsubmitbutton   Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar. Scenario We have a model Person how represent persons. The person has a Job. The user must select a job from a dropdownlist when he creates the person. What if the person’s job is not listed in the...

Read More

Parches en CSS

Parches en CSS

Que lindo es terminar un sitio y ver que esta todo bien, pero derepente llega el demonio de internet explorer y a chrome le viene la maña y tu felicidad llega hasta ahí, bueno aqui les dejo la solución...

Read More

Cambiar remitente de correo – WordPress

Cambiar remitente de correo – WordPress

Para cambiar el correo de wordpress (wordpress@dominio.com) cuando este envía un email a los usuarios que se registran, solo debes entrar a tu archivo functions.php de tu theme y agregar las siguientes lineas: function change_mail( $mail ) { return "NOMBRE@TUDOMINIO.COM"; //Cambiar por el correo que desees } function change_sender ( $sendername ) { return "NOMBRE"; //Cambiar por el nombre que...

Read More

Campos Personalizados – get_post_meta [WordPress]

Campos Personalizados – get_post_meta [WordPress]

Uso <?php $meta_values = get_post_meta($post_id, $key, $single); ?> Parametros $post_id (integer) (required) The ID of the post from which you want the data. Use $post->ID to get a post’s ID. Default: None $key (string) (required) A string containing the name of the meta value you want. Default: None $single (boolean) (optional) If set to true then the function will return a single result, as a...

Read More
content top