Planet PHP is a great collation of PHP Blogs from around the net.
Keep up with programming thoughts and techniques from many experienced PHP programmers.
Planet PHP News:
Planet PHP
SystemProcess - Execute system commands with ease - Jakob Westhoff A current project of mine demanded me to invoke a lot of different
programms on the commandline. Some calls were simple executions of a
command followed by one or two arguments. Others were more complex with
the need to define special environment variables or custom file
descriptors. Some of them even needed me to asyncronously run the
programs to be able to read their output during execution or run multiple
commands at once. Because nobody, includind me, really likes the proc_*
family of functions like proc_open in php, I decided to write a simple and
yet powerful object oriented wrapper around all this functionality. The
wrapper is fully unit tested and licensed under LGPLv3 for you to use
in your projects. For more informations and documentation please refer
the the blog entry.
Bye bye PDFLib - Bertrand Mansion I have been using PDFLib for over 4 years now on various projects. Of course, I had to buy the PDFLib license because most are commercial projects and we needed the PDI feature which allows you for example to use another PDF document as a template. So I bought the PDFLib 5 license, then the PDFLib 6 license update because if I remember correctly PDFLib 5 didn't support unicode or something like that. That's about 1000 euros each time.
Recently, we have upgraded our hosting plan from our hosting company and instead of a single CPU on the server, we now have two for the same price. It's a nice upgrade. Unfortunately, PDFLib didn't like the upgrade and now returns the following error when we generate a document with our serial number "Found 2 CPUs - license covers only 1".
Of course, I have contacted their sales department about the problem. They replied that I should either buy another license for PDFLib 6 for the second CPU, or eventually buy PDFLib 7 which doesn't have this per CPU limitation. Both solutions cost approximately the same price, more than 900 euros !
I don't feel like buying another license and I don't need PDFLib 7 "features". So, farewell PDFLib ! It was nice working with PDFLib but they obviously became too greedy.
I am going to investigate other toolkits. I know that most of them do not support features like PDI, but I can probably find another way around this issue. So far, I have found :
Haru : There is a brand new PECL extension for Haru written by Antony Dovgal which was released last week in version 1.0. Sounds interesting !
FPDF : These are mostly PHP classes. The author claims that it is not as fast as PDFLib but says it performs well. I have already tried this solution before and it was working very well but I was only producing PDF invoices for an e-commerce site. Building a full catalogue might be too much for it. The nice thing is its companion class FPDI which can also import existing PDF files and worked for me the last time I tried.
TCPDF : In the same vein as FPDF, these are a set of PHP classes for generating PDF documents. I need to have a look at it as well. It seems to work with FPDI too.
Panda : There is also a PECL extension for Panda, but I am not sure it is maintained and the project didn't release anything for a long time.
Cairo : Cairo has a backend for PDF rendering. Given its strengths in graphics, this can be interesting but I think it will be too limited in my case as I need to create documents with multiple pages. There is also a PECL Extension for Cairo (there are two actually, but the other one didn't make a release yet).
I now have to evaluate them and rewrite some code for our new server. But in the end, I won't have to deal with PDFLib and its licensing mess anymore, so that's for the better.
PHP 5.2.7RC4 released! - Pierre
Ilia has released PHP 5.2.7RC4 yesterday and we made it synced again, binaries and sources releases are available! Please test it
The sources can be fetch here (zip sources are available on the windows site as well) and the binaries in the windows site.
Note to self: do not say it is the last RC (is it? )
Announce
Windows QA Builds
Sources releases
First OpenCoffee in Karlskrona - Danne Lundqvist Yesterday we had the first OpenCoffee in Karlskrona at the new place Bistro Java. The initiative came from Martin and Christian at Svensk Webbutveckling. Really nice guys even though they seem to prefer strongly typed languages over PHP. We had a good chat about both business and web development in general as well as technology and languages.
Unfortunately we three were the only ones showing up so the event will be repeated next thursday. If you are interested in business, technology, internet and web development - and are nearby - drop in!