R: [PHP-INST] Problems with PDFLIB

From: Date: Thu, 13 Jul 2000 09:56:54 +0000
Subject: R: [PHP-INST] Problems with PDFLIB
Groups: php.general 
Request: Send a blank email to php-general+get-6402@lists.php.net to get a copy of this message
Downloaded,made and installed absolutely latest php4-latest.tar.bz2. Problem solved. Now the next: PDF_open (as in 0.6) needs two parameters, filename and info structure. <?php $pdffilename = "/tmp/pdfclock.pdf"; $radius = 200; $margin = 20; $pagecount = 40; $fp = fopen($pdffilename, "w"); $info=pdf_get_info("P"); // this is line 8 pdf_set_info_creator($info, "pdfclock.php"); pdf_set_info_author($info, "Uwe Steinmann"); pdf_set_info_title($info, "Analog Clock"); $pdf = pdf_open($fp,$info); ... ... ?> Starting this php file, I get Fatal error: Call to undefined function: pdf_get_info() in /home/httpd/html/privati/pdfclock.php on line 8 File's scratched from php4 manual, example for pdflib2.0, modified according to new manual's API. WHat to do? Thanks in advance. Ciao Roberto > On Tue, Jul 11, 2000 at 04:45:53PM +0200, Roberto Sartor wrote: > > I've got no problem on make and on make install, but on > Apache starting I > > get: > > > > Starting httpd: Syntax error on line 265 of > /etc/httpd/conf/httpd.conf: > > Cannot load /etc/httpd/modules/libphp4.so into server: > > /etc/httpd/modules/libphp > > 4.so: undefined symbol: PDF_get_image_width > > [FAILED] > Your version of pdflib is too new or php to old. > PDF_get_image_width() has been removed in pdflib 3.01 and php > regards that change only in the latest version. > > Uwe

« previous php.general (#6402) next »