Connexion utilisateur


| | More
Ce site est desuet. Pour les dernières news et article, visitez mon nouveau blog, sous Drupal 7

PHP automation with Phing, generate PHPDoc

ven, 25/03/2011 - 15:01 - Sylvain

A few weeks ago I worked with Phing to generate the documentation of a PHP project thanks to the excellent library PHPDoc. I currently work at a total redesign of my blog: migrating to Drupal 7, incorporating a custom theme from a template purchased on Theme-forest, publication of some articles started but not completed, ...

L'injection SQL par xkcd.com

ven, 11/03/2011 - 21:44 - Sylvain

Vu dans Pro Drupal 7 for Windows Developers, publié récemment chez Apress, la célèbre et talentueuse maison d'édition. No comment...

ZendAMF, small report

sam, 05/03/2011 - 14:16 - Sylvain

I'm currently working on a game project in Flash, and I decided not to work with AMF-PHP ( despite the SilexLab enthusiasm and the version 2 in the pipe) but with ZendAMF.

PHPExcel: validate cells and dynamic autocomplete, create named range on the fly

sam, 12/02/2011 - 15:47 - Sylvain

This is my last snippet about PHPExcel, I promise you (;-). I just finished a big project and I do not want to spend my life generating Excel documents, despite the PHPEcel efficiency.

In the meantime, here are a few lines about the generation of dynamic lists of suggestion. They are very useful to constrain the user to certain values, and allow it to go faster by pre-filling some cell.

Error handling within PHPExcel document generation

sam, 12/02/2011 - 14:22 - Sylvain
To send a Excel document generated by PHPExcel to the PHP standard output and allow its download, you must send special headers:


header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="training-schedule.xls"');
header('Cache-Control: max-age=0');

A method for applying styles to a cell with PHPExcel and array_merge_recursive

lun, 31/01/2011 - 21:43 - Sylvain

At work, chez LesTanukis, I generate Excel files all day thanks to the excellent open source library PHPExcel. I have asked myself how to structure the code, specialy the graphic part. To format a document, the easiest way is probably to call "applyFromArray" on an cell instance. However, to do something pretty, you must often aplly 5 or 6 directives to each cell, often with very different codes (title, banner, single cell, columns names, ...).

IE7 Excel MIME-type bug

mar, 18/01/2011 - 17:17 - Sylvain

I spent several hours today to fix a bug in IE7. We generate on the fly many Excel document, and offer to our users for download. Except that IE7 prompts the user to download a .zip, never a .xlsx. If I download the file, and open-it with Excel, no problem, the file is read and perfect. The problem is the MIME type, IE7 seems to need that Apache sends precisely the right header.

MySQL Replace

jeu, 13/01/2011 - 19:14 - Sylvain

Hello guys, I am opening here a new section, which I intend to regularly publish a small snippet of code that

Mon Top 10 des meilleures applications Android

sam, 01/01/2011 - 18:15 - Sylvain

Après avoir passé les vacances de Noël au fin fond de la campagne Lorraine, sans wifi, mais avec 3G, grâce bien sur à mon petit smartphone Android, où j'ai pu tester une centaine d'applications, je suis fin prêt à vous livrer mon petit compte-rendu.

Adobe Flex quality, part 1/2, getting started with FlexUnit4

sam, 30/10/2010 - 19:22 - Sylvain

At-work, with the Tanukis (dream) team, we talk a lot of quality: