473,320 Members | 2,133 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,320 software developers and data experts.

undefined function: pdf_new()

<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 with:

<?php
$pdf = pdf_new();
pdf_open_file($pdf);

can anybody see what's wrong? my server has php version 4.3.2.

mike
Jul 17 '05 #1
2 34120
Those functions, although are part of PHP, were never compiled in.

--
Mike Bradley
http://www.gzentools.com -- free online php tools
"michael nieuwenhuizen" <us****@mikkie.net> wrote in message
news:10*************@corp.supernews.com...
<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 with:

<?php
$pdf = pdf_new();
pdf_open_file($pdf);

can anybody see what's wrong? my server has php version 4.3.2.

mike

Jul 17 '05 #2
CountScubula wrote:
Those functions, although are part of PHP, were never compiled in.

--
Mike Bradley
http://www.gzentools.com -- free online php tools
"michael nieuwenhuizen" <us****@mikkie.net> wrote in message
news:10*************@corp.supernews.com...
<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 with:

<?php
$pdf = pdf_new();
pdf_open_file($pdf);

can anybody see what's wrong? my server has php version 4.3.2.

mike



If you want to check which extensions are enabled on the server you're
using, you can use phpinfo().

sample:
=======

<?php
phpinfo();
?>

See: http://www.php.net/phpinfo

http://www.php.net/pdf has info. about not only where to get pdflib, but
how to install it.

Regards,

- Dan
http://www.dantripp.com/
Jul 17 '05 #3

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

Similar topics

5
by: Randell D. | last post by:
Folks, I feel like pulling my hair out - I tried unsuccessfully over the past few days to install ImagMagick but because of version conflicts and missing libraries I had to give up. I originally...
6
by: obi wan kenobi | last post by:
i've used the Amazon PHP api for several months now to pull amazon data into my affiliate site - but recently i'm starting to get "call to undefined function" errors " Fatal error: Call to...
4
by: xcomm | last post by:
I tried to create some images with php and gd and get always Call to undefined function imagejpeg() or Call to undefined function imagepng() PHP was build with --with-gd --with-zlib but I...
4
by: Don | last post by:
I am trying to integrate the phpbb user database for my whole site. Here's the code I used and the error I got. Any help would be appreciated. Fatal error: Call to undefined function:...
4
by: gc | last post by:
I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of Apache, PHP and...
1
by: annie | last post by:
Can anyone point me in the right direction here? I've got this little image script <?php $im = ImageCreate(200,200); $white = ImageColorAllocate($im,oxFF,oxFF,oxFF); $black =...
1
by: franscescomoi | last post by:
Hi. On PHP 4.3.10 on Linux I try to: ------ $im = imagecreate(400, 30); $black = imagecolorallocate($im, 0, 0, 0); imagettftext($image, 20, -3, 10, 20, $black, 'Arial.ttf', 'Test'); ------- ...
3
by: Musashi | last post by:
I'm trying to access a Cloudscape/Derby database via PHP and am using the IBM DB2 Lite client which I have installed. As soon as I call db2_connect(...) in the php code, I get a db2_connect...
8
by: Cruella DeVille | last post by:
I'm writing a class to handle reading/writing from/to files like this (shortened) lass FileIO{ private $filename; private $mode; private $filePointer; private $dictionary; public function...
9
by: java | last post by:
Hey there, I just removed an elderly PHP4-Installation from my Windows-Box and installed PHP 5.2.1. I used the PHP4-Module as local batchfile- interpreter by E:\ersDHCP>php ./extractLog.php ...
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...
0
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...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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: 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.