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

Imagen Personalizada – WordPress

Imagen Personalizada – WordPress

en el function.php del theme agregar el soporte add_theme_support( ‘post-thumbnails’ ); se usa dentro del Loop así: <?php if ( (function_exists(‘has_post_thumbnail’)) && (has_post_thumbnail()) ) { the_post_thumbnail(); } ?> USO: <?php the_post_thumbnail( $size, $attr ); ?> Parameters $size (string/array) (Optional) Image size. Default: ‘post-thumbnail’,...

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
content top