Connecting Tech Pros Worldwide Forums | Help | Site Map

Problem creating PDF on linux m/c

Newbie
 
Join Date: Jan 2007
Posts: 7
#1: Jan 18 '07
Hello friends,

I am trying to create PDF file on linux but got the error for the function
PDF_new() undefined function.
So I find the libpdf-php.so . and put it into /etc/PHP folder but since i got the same error for it.

Any body tried the code for the same.
Pls. share with me.

Thanks inadvance
Pratibha

ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#2: Jan 18 '07

re: Problem creating PDF on linux m/c


This must have to do with the installation of the pdf library in your Linux environment. So I will copy this thread to the Linux forum and leave this thread in here.

Maybe the Linux forum visiting members can help you. Good luck.

Ronald :cool:
Moderator
 
Join Date: Nov 2006
Location: Boston, USA
Posts: 505
#3: Jan 18 '07

re: Problem creating PDF on linux m/c


Check which php version you have;
php_new() was added in some 4.x release.

Also make sure that pdf extension is loaded:

Expand|Select|Wrap|Line Numbers
  1. extension_loaded('pdf');
  2.  
Actually, phpinfo(); may give you all this information.
Reply