Re: [Cooker] problem with php-pdf

2003-06-25 Thread FACORAT Fabrice
Le mer 25/06/2003 à 18:29, Jean-Michel Dault a écrit :
> Le mer 25/06/2003 à 14:13, FACORAT Fabrice a écrit :
> > What about shipping fpdf : http://fpdf.org/ ?
> 
> FPDF is an excellent piece of software. Free, well documented, easy to
> use, and lots of examples.
> 
> However, it's a php class, not an extension (no binary), and is not as
> performant as the other C-library based implementations.
> 
> I could package a rpm, but I don't know where to put it. In php.ini, we
> have:
> include_path = ".:/usr/lib/php/:/usr/share/pear/"
> 
> FPDF is not part of pear, and if we put it under /usr/lib/php, rpmlint
> will complain that there is no binary.
> 
> I guess we'll need a /usr/share/php hierarchy.

That's sounds sensible.

Note : I think that putting Pear under /usr/share/pear/ is a bad idea.
It should be put under for example /usr/share/php/pear.

Can we have Pear-Benchmark include in pear package or provide in a
separate package ? ( http://pear.php.net/package-info.php?pacid=53 )
In some books like PHP Avancé ( don't remember the edition ) they talk
about using pear to bench the site in order to optimise it.

-- 
FACORAT Fabrice <[EMAIL PROTECTED]>
Fiventis




Re: [Cooker] problem with php-pdf

2003-06-25 Thread Jean-Michel Dault
Le mer 25/06/2003 à 14:13, FACORAT Fabrice a écrit :
> What about shipping fpdf : http://fpdf.org/ ?

FPDF is an excellent piece of software. Free, well documented, easy to
use, and lots of examples.

However, it's a php class, not an extension (no binary), and is not as
performant as the other C-library based implementations.

I could package a rpm, but I don't know where to put it. In php.ini, we
have:
include_path = ".:/usr/lib/php/:/usr/share/pear/"

FPDF is not part of pear, and if we put it under /usr/lib/php, rpmlint
will complain that there is no binary.

I guess we'll need a /usr/share/php hierarchy.

-- 
Jean-Michel Dault <[EMAIL PROTECTED]>



Re: [Cooker] problem with php-pdf

2003-06-25 Thread Pierre Jarillon
Le Mercredi 25 Juin 2003 20:17, FACORAT Fabrice a écrit :
> Le mer 25/06/2003 à 15:51, andre a écrit :
> > On Wednesday 25 June 2003 17:25, Oden Eriksson wrote:
> > > check at the plf site for php-pdf like stuff, we cannot ship this in
> > > mandrake.
> >
> > License problems?
>
> PDFLib is not free software and you must pay a license for commercial
> use

Yes, http://www.pdflib.com/ is not a libre software,
but http://fpdf.org/ is Libre (perhaps too much).

Don't confuse FPDF and PDFlib !
-- 
Pierre Jarillon - http://pjarillon.free.fr/
Vice-président de l'ABUL : http://abul.org/




Re: [Cooker] problem with php-pdf

2003-06-25 Thread FACORAT Fabrice
Le mer 25/06/2003 à 15:51, andre a écrit :
> On Wednesday 25 June 2003 17:25, Oden Eriksson wrote:
> >
> > check at the plf site for php-pdf like stuff, we cannot ship this in
> > mandrake.
> License problems?

PDFLib is not free software and you must pay a license for commercial
use





Re: [Cooker] problem with php-pdf

2003-06-25 Thread FACORAT Fabrice
Le mer 25/06/2003 à 15:25, Oden Eriksson a écrit :
> onsdagen den 25 juni 2003 16.45 skrev loic leplomb:
> > i don't find php-pdf package on linux mandrake therefor, i took another
> > package and i added pdf.so in /usr/lib/php/extension and i added it in
> > php.ini.

> check at the plf site for php-pdf like stuff, we cannot ship this in mandrake.

What about shipping fpdf : http://fpdf.org/ ?

-- 
FACORAT Fabrice <[EMAIL PROTECTED]>
Fiventis




Re: [Cooker] problem with php-pdf

2003-06-25 Thread andre
On Wednesday 25 June 2003 17:25, Oden Eriksson wrote:
> onsdagen den 25 juni 2003 16.45 skrev loic leplomb:
> > i don't find php-pdf package on linux mandrake therefor, i took another
> > package and i added pdf.so in /usr/lib/php/extension and i added it in
> > php.ini.
> >
> > i have this message :Fatal error: PDFlib error: function 'PDF_set_info'
> > must not be called in 'object' scope in 
> >
> > my source:
> > $pdf=pdf_new();
> > pdf_open_file($pdf,"/var/www/html/planning2/planning.pdf");
> > //format A4
> > pdf_set_info($pdf, "Author", "moi");
> > pdf_set_info($pdf, "Title", "Planning");
> >
> > pdf_begin_page($pdf,842,595);
> >
> > could you help me pease?
>
> check at the plf site for php-pdf like stuff, we cannot ship this in
> mandrake.
License problems?




Re: [Cooker] problem with php-pdf

2003-06-25 Thread Oden Eriksson
onsdagen den 25 juni 2003 16.45 skrev loic leplomb:
> i don't find php-pdf package on linux mandrake therefor, i took another
> package and i added pdf.so in /usr/lib/php/extension and i added it in
> php.ini.
>
> i have this message :Fatal error: PDFlib error: function 'PDF_set_info'
> must not be called in 'object' scope in 
>
> my source:
> $pdf=pdf_new();
> pdf_open_file($pdf,"/var/www/html/planning2/planning.pdf");
> //format A4
> pdf_set_info($pdf, "Author", "moi");
> pdf_set_info($pdf, "Title", "Planning");
>
> pdf_begin_page($pdf,842,595);
>
> could you help me pease?

check at the plf site for php-pdf like stuff, we cannot ship this in mandrake.

-- 
Regards // Oden Eriksson, Deserve-IT.com