473,324 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

problems with pdf_new()

We're migrating our server from Apache 1.3.27 and PHP 4.1.2 to one with
Apache 2.0.52 and PHP 4.3.9.
We're using PDFlib 5.0.3. (Can't afford to upgrade right now.)
Don't know if it matters, but we "installed" PDFlib on the new server
ny rsync'ing the /usr/share/PDFlib-5.0.3p1-Linux/ folder over.

Anyway, using variously placed echos in the PHP I've narrowed down the
problem to the script stopping at:
$pdf = pdf_new();

No error, it just stops.
php.net doesn't have any real info on the function. I did a newsgroup
search and came up with a thread or two about it not working, but for
seemingly unrelated issues.

Any suggestions? If nothing else, some way to generate an error?

Thanks for any advice!
Liam

Nov 22 '05 #1
2 3802

ne**@celticbear.com wrote:
We're migrating our server from Apache 1.3.27 and PHP 4.1.2 to one with
Apache 2.0.52 and PHP 4.3.9.
We're using PDFlib 5.0.3. (Can't afford to upgrade right now.)
Don't know if it matters, but we "installed" PDFlib on the new server
ny rsync'ing the /usr/share/PDFlib-5.0.3p1-Linux/ folder over.

Anyway, using variously placed echos in the PHP I've narrowed down the
problem to the script stopping at:
$pdf = pdf_new();

No error, it just stops.
php.net doesn't have any real info on the function. I did a newsgroup
search and came up with a thread or two about it not working, but for
seemingly unrelated issues.

Any suggestions? If nothing else, some way to generate an error?

Thanks for any advice!
Liam


OK, new info.
I turned error reporting on in php.ini (DUH!) and now I see this:

Warning: dl(): pdf: Unable to initialize module Module compiled with
module API=20010901, debug=0, thread-safety=0 PHP compiled with module
API=20020429, debug=0, thread-safety=0 These options need to match in
/var/www/html/home/printingautomation/studio/card.bkk on line 1

Fatal error: Call to undefined function: pdf_new() in
/var/www/html/home/printingautomation/studio/card.bkk on line 2

Here are lines 1 and 2:

dl("libpdf_php.so");
$pdf = pdf_new();

Now, I copied the libpdf_php.so file over from the old server and kept
the same permissions and ownership.
I rsynced the /usr/share/PDFlib-5.0.3p1-Linux/ over and same ownership
and permissions.
What could the problem be?

Thanks for any help!
Liam

Nov 22 '05 #2
ne**@celticbear.com wrote:
ne**@celticbear.com wrote:
We're migrating our server from Apache 1.3.27 and PHP 4.1.2 to one with
Apache 2.0.52 and PHP 4.3.9.
We're using PDFlib 5.0.3. (Can't afford to upgrade right now.)
Don't know if it matters, but we "installed" PDFlib on the new server
ny rsync'ing the /usr/share/PDFlib-5.0.3p1-Linux/ folder over.

Anyway, using variously placed echos in the PHP I've narrowed down the
problem to the script stopping at:
$pdf = pdf_new();

No error, it just stops.
php.net doesn't have any real info on the function. I did a newsgroup
search and came up with a thread or two about it not working, but for
seemingly unrelated issues.

Any suggestions? If nothing else, some way to generate an error?

Thanks for any advice!
Liam

OK, new info.
I turned error reporting on in php.ini (DUH!) and now I see this:

Warning: dl(): pdf: Unable to initialize module Module compiled with
module API=20010901, debug=0, thread-safety=0 PHP compiled with module
API=20020429, debug=0, thread-safety=0 These options need to match in
/var/www/html/home/printingautomation/studio/card.bkk on line 1

Fatal error: Call to undefined function: pdf_new() in
/var/www/html/home/printingautomation/studio/card.bkk on line 2

Here are lines 1 and 2:

dl("libpdf_php.so");
$pdf = pdf_new();

Now, I copied the libpdf_php.so file over from the old server and kept
the same permissions and ownership.
I rsynced the /usr/share/PDFlib-5.0.3p1-Linux/ over and same ownership
and permissions.
What could the problem be?

Thanks for any help!
Liam


Read The Error!
Warning: dl(): pdf: Unable to initialize module Module compiled with
module API=20010901, debug=0, thread-safety=0 PHP compiled with module
API=20020429, debug=0, thread-safety=0 These options NEED TO MATCH in
/var/www/html/home/printingautomation/studio/card.bkk on line 1


Re-Compile pdflib, or upgrade.

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: michael nieuwenhuizen | last post by:
<newbie alert> hello, just started with PHP last week, and i tried to create a pdf, but i get the error message: Fatal error: Call to undefined function: pdf_new() the php files starts...
14
by: Jim Hubbard | last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework? Not if you are unaware of the 1,596 issues listed at KBAlertz (http://www.kbalertz.com/technology_3.aspx). If you are...
1
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
1
by: Amir | last post by:
Hi i wrote the following, which causes the script to terminate any help is greatly appreciated, thanks so much in advance! ======================= <?
5
by: Corky | last post by:
This works: db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID = PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) -...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
2
by: senthpps | last post by:
I have to create new pdf file by using PDF_new() function. I get an error is undifined function PDF_new(), Why it will generate error to me.
1
by: mukeshrasm | last post by:
<?php // create new document pdf_new(); $pdf = pdf_new(); pdf_open_file($pdf); pdf_begin_page($pdf, 500, 700); // define a font $font = pdf_findfont($pdf, "Courier", "host", 0);
4
by: dudelideisann | last post by:
I only get this message whenever I try to create a pdf: My webhost has the pdf set to 'enabled' in phpinfo() using php 4.4 Any ideas what might be wrong? Could there be any other problems...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.