Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

[PHP3] pdflib 3.0 From: Jim Ide (JIde <email protected>)
Date: 03/09/00

Hello -

I am trying to get pdflib to work with php3. I have copied example 2 from
http://www.php.net/manual/html/ref.pdf.html
<http://www.php.net/manual/html/ref.pdf.html> into a file called pdf.php3:

Example 2. Creating a PDF document with pdflib 2.x
   1
   2 <?php
   3 $fp = fopen("test.pdf", "w");
   4 $pdf = PDF_open($fp);
   5 pdf_set_info_author($pdf, "Uwe Steinmann");
<snip>

When I open the file in netscape, I get the following error:

Fatal error: Call to unsupported or undefined function pdf_open() in
/www/pdf.php3 on line 3

I am using a new install of RedHat 6.1. I have compiled the components as
follows. Can someone please tell me what I am doing wrong?

Thanks -
Jim Ide

-----

goto http://www.pdflib.com/pdflib/download/
get pdflib-3.0.tar.gz (save in /usr/local/src)
cd /usr/local/src
tar -xvzf pdflib-3.0.tar.gz
cd /usr/local/src/pdflib-3.0
./configure --prefix=/usr/local \
            --enable-shared=yes \
            --with-pnglib=no \
            --with-tifflib=no \
            --with-zlib=no
make
make test
make install

goto http://www.apache.org/dist
get apache_1.3.12.tar.gz (save in /usr/local/src)
cd /usr/local/src
tar -xvzf apache_1.3.12.tar.gz
cd /usr/local/src/apache_1.3.12
./configure

goto http://www.php.net/download-php.php3
get php-3.0.15.tar.gz (save in /usr/local/src)
cd /usr/local/src
tar -xvzf php-3.0.15.tar.gz
cd /usr/local/src/php-3.0.15
./configure --with-mysql=/usr/local/mysql \
            --with-apache=/usr/local/src/apache_1.3.12 \
            --with-config-file-path=/usr/local/lib \
            --with-pdflib=/usr/local/lib \
            --enable-track-vars
make
make install

cd /usr/local/src/apache_1.3.12
./configure --prefix=/usr/local/apache \
            --activate-module=src/modules/php3/libphp3.a
make
make install

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>