Guide to PHP SecurityQuicksearchCalendar
|
Tuesday, January 3. 2006GDChart & Fileinfo Releases
Just finished packaging Fileinfo 1.0.3 that finally builds on both PHP 5.1 and 5.0 properly. You can download the new version by running "pecl install fileinfo" or download the tgz file from here.
I've also made the release of GDChart 0.2 that is nearly a complete rewrite of the extension, originally written by Rasmus that allows it to work with PHP 5.1. This extension wraps around the bundled gdchart library and allows you with just a few lines of code draw 20 different graphs types. Like all pecl extensions it can be installed by running "pecl install gdchart" or you can download the tar ball from here. Since at the moment there is no documentation for the extension, here are a few examples of its usage: Line Graph:
PHP: 3D Area Graph: PHP: 3D Combo Graph: PHP: 3D Pie Graph: PHP: Comments
Display comments as
(Linear | Threaded)
Ilia,
The gdgraph looks very useful, does it work on only PHP 5.1? Anyhow looking forward to utilizing it to see what it can do! Mike
It will work in PHP 5.0 as well. There is an older variant of GDChart extension that works with PHP 4 too. But you need to check it out from cvs manually.
Hmm wasn't aware know that GDChart extension existed. But I wasn't happy with the quality of GDs output, so ended up using PHP5s XMLWriter for SVG chart generation. Better quality output, and now Firefox, Opera and IE (with Adobe SVG Viewer plugin) can view inline SVG means can include the chart directly in the page with XTHML1.1 + MathML 2.0 + SVG1.1 doctype.
Eg http://ren.dotgeek.org/ex/example.php
What about fileinfo on win32? I got a PECL modules collection with it included but when I add in the fileinfo extension php crashes on invocation.
The win32 binaries for fileinfo can be found here:
http://pecl4win.php.net/ext.php/php_fileinfo.dll
I found it and got it working in the interim. But, I have some complaints! (Surprise...) First among them is that the hardcoded path for the magic file is Unix-centric. Why no windows paths? Second, why is there no documentation? Very terrible. PHP suggests that fileinfo supersedes the old magic module but without documentation a lot of people seem to be pretty well confused. (Including me, but I can google, so I figured it out well enough to solve my immediate problem...)
It would be cool, if there is a package which compiles with 5.2 too
Fileinfo will compile without a problem on 5.2, don't know about GDChart, I haven't tried to compile it with 5.2 yet.
I've just compiled the gdchart extension with PHP 5.2.1 and it works fine; however I had to fetch it from CVS to get the fix http://cvs.php.net/viewvc.cgi/pecl/gdchart/gdchart-src/gdchart.c?r1=1.11&r2=1.12 from Helly in; also I had to add a '#include "php.h"' to gdchart-src/array_alloc.c so that it picks up _emalloc - otherwise I got linker errors. Perhaps a '#define emalloc _emalloc' is better? works too...
BTW. the libgdchart now advanced to v0.11.5 - maybe this can be added now to the PECL extension? Also let me suggest that it would be way cool if you would add your samples above to CVS, and finally that all together put out as a release 0.3!! Thanks, great extension! |
ArchivesCategoriesSyndicate This BlogBlog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||










Comments