Micha1976
05-07-2004, 11:50
Hi,
Ich habe da auch ein Problem und zwar wir pdf erfolgreich installiert, aber wenn ich dann eine pdfdatei erstellen will kommt nur ein:
Fatal error: Call to undefined function: pdf_open() in /home/www/web1/sof2web/pdf.php on line 3
das script sieht so aus:
<?
$file = fopen("php.pdf", "w");
$dokument = pdf_open($file);
pdf_begin_page($dokument,200,100);
pdf_set_font($dokument,"Times-Roman",14, "winansi");
pdf_set_text_pos($dokument,20,50);
pdf_show($dokument,"Gratuliere PDFLib funktioniert");
pdf_end_page($dokument);
$dokument = pdf_close($dokument);
fclose($file);
header("location:php.pdf\n\n");
?>
Habe mir die 6.0 Liteversion runtergeladen (www.pdflib.com)
und folgender massen den Source kompiliert:
./configure --prefix=/usr --with-shared-pdflib --enable-cxx
Und so habe ich php Kompiliert:
./configure --prefix=/usr/share --datadir=/usr/share/php --bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include --with-_lib=lib --with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --disable-debug --enable-bcmath --enable-calendar --enable-ctype --enable-dbase --enable-discard-path --enable-exif --enable-filepro --enable-force-cgi-redirect --enable-ftp --enable-gd-imgstrttf --enable-gd-native-ttf --enable-inline-optimization --enable-magic-quotes --enable-mbstr-enc-trans --enable-mbstring --enable-memory-limit --enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-versioning --with-bz2 --with-dom=/usr/include/libxml2 --with-ftp --with-gdbm --with-gettext --with-gmp --with-imap=yes --with-jpeg-dir=/usr --with-ldap=yes --with-mcal=/usr --with-mcrypt --with-mysql=/usr --with-ndbm --with-png-dir=/usr --with-snmp --with-t1lib --with-tiff-dir=/usr --with-ttf --with-freetype-dir=yes --with-xml --with-zlib=yes --with-gd=shared --with-openssl --with-curl --with-imap-ssl --with-mm --with-apxs2=/srv/www/apache2/bin/apxs i586-suse-linux --with-pdflib=/usr
phpinfo sagt pdflib wird geladen:
pdf
PDF Support enabled
PDFlib GmbH Version 6.0.0
Revision $Revision: 1.55 $
Config sieht so aus:
./pdflib-config --all
PDFlib 6.0.0
bindings: c cpp perl
includedir: /usr/include
libdir: /usr/lib
libversion: 5:0:0
pdi: no
ldflags: -L/usr/lib -lpdf -lm
cflags: -I/usr/include
Ich weiss nicht woran es liegt das es nicht geht.
Beim configure und beim make kommen keine Fehlermeldungen, daher weiss ich nicht was ich da noch tun kann.
Vielleicht weiss ja einer rat.
Benutze phpversion 4.3.7
Ich habe da auch ein Problem und zwar wir pdf erfolgreich installiert, aber wenn ich dann eine pdfdatei erstellen will kommt nur ein:
Fatal error: Call to undefined function: pdf_open() in /home/www/web1/sof2web/pdf.php on line 3
das script sieht so aus:
<?
$file = fopen("php.pdf", "w");
$dokument = pdf_open($file);
pdf_begin_page($dokument,200,100);
pdf_set_font($dokument,"Times-Roman",14, "winansi");
pdf_set_text_pos($dokument,20,50);
pdf_show($dokument,"Gratuliere PDFLib funktioniert");
pdf_end_page($dokument);
$dokument = pdf_close($dokument);
fclose($file);
header("location:php.pdf\n\n");
?>
Habe mir die 6.0 Liteversion runtergeladen (www.pdflib.com)
und folgender massen den Source kompiliert:
./configure --prefix=/usr --with-shared-pdflib --enable-cxx
Und so habe ich php Kompiliert:
./configure --prefix=/usr/share --datadir=/usr/share/php --bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include --with-_lib=lib --with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --disable-debug --enable-bcmath --enable-calendar --enable-ctype --enable-dbase --enable-discard-path --enable-exif --enable-filepro --enable-force-cgi-redirect --enable-ftp --enable-gd-imgstrttf --enable-gd-native-ttf --enable-inline-optimization --enable-magic-quotes --enable-mbstr-enc-trans --enable-mbstring --enable-memory-limit --enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-versioning --with-bz2 --with-dom=/usr/include/libxml2 --with-ftp --with-gdbm --with-gettext --with-gmp --with-imap=yes --with-jpeg-dir=/usr --with-ldap=yes --with-mcal=/usr --with-mcrypt --with-mysql=/usr --with-ndbm --with-png-dir=/usr --with-snmp --with-t1lib --with-tiff-dir=/usr --with-ttf --with-freetype-dir=yes --with-xml --with-zlib=yes --with-gd=shared --with-openssl --with-curl --with-imap-ssl --with-mm --with-apxs2=/srv/www/apache2/bin/apxs i586-suse-linux --with-pdflib=/usr
phpinfo sagt pdflib wird geladen:
PDF Support enabled
PDFlib GmbH Version 6.0.0
Revision $Revision: 1.55 $
Config sieht so aus:
./pdflib-config --all
PDFlib 6.0.0
bindings: c cpp perl
includedir: /usr/include
libdir: /usr/lib
libversion: 5:0:0
pdi: no
ldflags: -L/usr/lib -lpdf -lm
cflags: -I/usr/include
Ich weiss nicht woran es liegt das es nicht geht.
Beim configure und beim make kommen keine Fehlermeldungen, daher weiss ich nicht was ich da noch tun kann.
Vielleicht weiss ja einer rat.
Benutze phpversion 4.3.7