Page 1 of 1

pdflib help

Posted: Mon Mar 01, 2004 7:13 am
by s_halder
hi,

i am trying to create pdfs using php and pdflib. the first thing i tried was using the precompiled version from pdflib.com. i got that to work and my pdfs all looked like i wanted them too. except one minor detail, the big pdflib.com banner in the backround.
so i got the src version for unix systems and recompiled my php on my linux box (suse 8.1). that worked as well, phpinfo() shows the correct pdflib version and everything. but now if i try to call pdflib functions in scripts i access via the webbrowser (i use apache as webserver) the functions are undefined. the strange thing is that if i try run php scripts from the commandline like this "php hello.php" everything works fine and a pdf doc without banner is created.
so how is the php apache uses different from the php i call from the commandline? what do i have to do to get the apache php to behave the same way?
thx for reading,

sebastian

Posted: Fri Mar 05, 2004 1:12 pm
by s_halder
solved the problem.
found a parameter (--with-apxs i think)that builds the php apache module when u rebuild php.
installed the module and everything worked as i intended...