PHP automation with Phing, generate PHPDoc
Soumis par Sylvain le ven, 25/03/2011 - 15:01A 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
Soumis par Sylvain le ven, 11/03/2011 - 21:44Vu 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
Soumis par Sylvain le sam, 05/03/2011 - 14:16I'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
Soumis par Sylvain le sam, 12/02/2011 - 15:47This 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
Soumis par Sylvain le sam, 12/02/2011 - 14:22
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
Soumis par Sylvain le lun, 31/01/2011 - 21:43At 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
Soumis par Sylvain le mar, 18/01/2011 - 17:17I 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
Soumis par Sylvain le jeu, 13/01/2011 - 19:14Hello 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
Soumis par Sylvain le sam, 01/01/2011 - 18:15Aprè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.
