[PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei

Hi, 

  I use Linux, and I had installed PHP using yum install php. I am trying to 
use the pdf_new function to create pdfs from existing text files, but I get 
this error 

PHP Fatal error:  Call to undefined function pdf_new() 

I have noticed that when I run the phpinfo() command, I cannot find the PDF 
phrase at all. My php.ini file does not even have these two lines 

  extension=php_pdf.dll
  extension=php_cpdf.dll

Could anyone suggest me what kind of command I should use if I need to build 
PDFs using PHP on a Linux system?

Thanks in advance. 

Alice



_
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1loc=us

Re: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Bastien Koert
On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei aj...@alumni.iu.edu wrote:


 Hi,

  I use Linux, and I had installed PHP using yum install php. I am trying to
 use the pdf_new function to create pdfs from existing text files, but I get
 this error

PHP Fatal error:  Call to undefined function pdf_new()

 I have noticed that when I run the phpinfo() command, I cannot find the PDF
 phrase at all. My php.ini file does not even have these two lines

  extension=php_pdf.dll
  extension=php_cpdf.dll

 Could anyone suggest me what kind of command I should use if I need to
 build PDFs using PHP on a Linux system?

 Thanks in advance.

 Alice



 _
 Express yourself with gadgets on Windows Live Spaces
 http://discoverspaces.live.com?source=hmtag1loc=us


I like dompdf from www.digitaljunkies.ca Its a class that takes html and
creates a pdf from it

-- 

Bastien

Cat, the other other white meat


RE: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei

On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei aj...@alumni.iu.edu wrote:



Hi,



  I use Linux, and I had installed PHP using yum install php. I am trying to 
use the pdf_new function to create pdfs from existing text files, but I get 
this error



PHP Fatal error:  Call to undefined function pdf_new()



I have noticed that when I run the phpinfo() command, I cannot find the PDF 
phrase at all. My php.ini file does not even have these two lines



  extension=php_pdf.dll

  extension=php_cpdf.dll



Could anyone suggest me what kind of command I should use if I need to build 
PDFs using PHP on a Linux system?



Thanks in advance.



Alice







_

Express yourself with gadgets on Windows Live Spaces

http://discoverspaces.live.com?source=hmtag1loc=us
I like dompdf from www.digitaljunkies.ca Its a class that takes html and 
creates a pdf from it
I saw online at http://us3.php.net/manual/en/pdf.installation.php that I could 
build PDF from some extension. However, I use Linux, and I don't think this 
installation using dll extension supports it. I ran the code and still get this 
error. 

Any ideas?
Thanks for your help.

Alice
-- 

Bastien

Cat, the other other white meat

_
Search from any Web page with powerful protection. Get the FREE Windows Live 
Toolbar Today!
http://get.live.com/toolbar/overview

Re: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Bastien Koert
On Mon, Mar 16, 2009 at 11:32 AM, Alice Wei aj...@alumni.iu.edu wrote:


 On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei aj...@alumni.iu.edu wrote:



 Hi,



  I use Linux, and I had installed PHP using yum install php. I am trying to
 use the pdf_new function to create pdfs from existing text files, but I get
 this error



PHP Fatal error:  Call to undefined function pdf_new()



 I have noticed that when I run the phpinfo() command, I cannot find the PDF
 phrase at all. My php.ini file does not even have these two lines



  extension=php_pdf.dll

  extension=php_cpdf.dll



 Could anyone suggest me what kind of command I should use if I need to
 build PDFs using PHP on a Linux system?



 Thanks in advance.



 Alice







 _

 Express yourself with gadgets on Windows Live Spaces

 http://discoverspaces.live.com?source=hmtag1loc=us
 I like dompdf from www.digitaljunkies.ca Its a class that takes html and
 creates a pdf from it
 I saw online at http://us3.php.net/manual/en/pdf.installation.php that I
 could build PDF from some extension. However, I use Linux, and I don't think
 this installation using dll extension supports it. I ran the code and still
 get this error.

 Any ideas?
 Thanks for your help.

 Alice
 --

 Bastien

 Cat, the other other white meat

 _
 Search from any Web page with powerful protection. Get the FREE Windows
 Live Toolbar Today!
 http://get.live.com/toolbar/overview

for PECL based windows installation see
http://us3.php.net/manual/en/install.pecl.downloads.php

another option is FPDF from www.fpdf.org another class

the classes are nice since they don't generally require the module to be
installed.

If you are on Linux, another option might be FOP...
http://xmlgraphics.apache.org/fop/

-- 

Bastien

Cat, the other other white meat


RE: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei


Date: Mon, 16 Mar 2009 11:41:35 -0400
Subject: Re: [PHP] pdf_new() uncalled Function
From: phps...@gmail.com
To: aj...@alumni.iu.edu
CC: php-general@lists.php.net



On Mon, Mar 16, 2009 at 11:32 AM, Alice Wei aj...@alumni.iu.edu wrote:



On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei aj...@alumni.iu.edu wrote:







Hi,







  I use Linux, and I had installed PHP using yum install php. I am trying to 
use the pdf_new function to create pdfs from existing text files, but I get 
this error







PHP Fatal error:  Call to undefined function pdf_new()







I have noticed that when I run the phpinfo() command, I cannot find the PDF 
phrase at all. My php.ini file does not even have these two lines







  extension=php_pdf.dll



  extension=php_cpdf.dll







Could anyone suggest me what kind of command I should use if I need to build 
PDFs using PHP on a Linux system?







Thanks in advance.







Alice















_



Express yourself with gadgets on Windows Live Spaces



http://discoverspaces.live.com?source=hmtag1loc=us

I like dompdf from www.digitaljunkies.ca Its a class that takes html and 
creates a pdf from it

I saw online at http://us3.php.net/manual/en/pdf.installation.php that I could 
build PDF from some extension. However, I use Linux, and I don't think this 
installation using dll extension supports it. I ran the code and still get this 
error.




Any ideas?

Thanks for your help.



Alice

--



Bastien



Cat, the other other white meat



_

Search from any Web page with powerful protection. Get the FREE Windows Live 
Toolbar Today!

http://get.live.com/toolbar/overviewfor PECL based windows installation see 
http://us3.php.net/manual/en/install.pecl.downloads.php


another option is FPDF from www.fpdf.org another class

the classes are nice since they don't generally require the module to be 
installed. 

If you are on Linux, another option might be FOP... 
http://xmlgraphics.apache.org/fop/ 

  I checked out the first link you provided, and downloaded it. I don't
think I need to edit anything else from the file according to the
webpage http://www.digitaljunkies.ca/dompdf/install.php. I put the
entire extracted directory at my /var/www/html directory. Is there any
suggestion you could provide on how to install it? I don't see any commands 
that it provides in its manual. 



Thanks for your help.



Alice



_
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1loc=us

Re: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Paul M Foster
On Mon, Mar 16, 2009 at 10:06:32AM -0400, Alice Wei wrote:

 
 Hi, 
 
   I use Linux, and I had installed PHP using yum install php. I am trying to 
 use the pdf_new function to create pdfs from existing text files, but I get 
 this error 
 
 PHP Fatal error:  Call to undefined function pdf_new() 
 
 I have noticed that when I run the phpinfo() command, I cannot find the PDF 
 phrase at all. My php.ini file does not even have these two lines 
 
   extension=php_pdf.dll
   extension=php_cpdf.dll
 
 Could anyone suggest me what kind of command I should use if I need to build 
 PDFs using PHP on a Linux system?
 
 Thanks in advance. 
 
 Alice
 

According to php.net, if you've installed PHP5 (which I assume is the
case, since you used Yum to install it), you should not be using the
pdf_new() function, but instead use the OO version:

$pdf = new pdflib();

All this assumes that the PDFLib extension is actually installed. The
documentation at php.net is a little confusing about whether this is an
actual extension or not. Personally, I just install the add-on for this.

Paul
-- 
Paul M. Foster

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Bastien Koert
[snip]


 [/snip]
 another option is FPDF from www.fpdf.org another class

 the classes are nice since they don't generally require the module to be
 installed.

 If you are on Linux, another option might be FOP...
 http://xmlgraphics.apache.org/fop/

   I checked out the first link you provided, and downloaded it. I don't
 think I need to edit anything else from the file according to the
 webpage http://www.digitaljunkies.ca/dompdf/install.php. I put the
 entire extracted directory at my /var/www/html directory. Is there any
 suggestion you could provide on how to install it? I don't see any
 commands that it provides in its manual.



 Thanks for your help.



 Alice



 _
 Express yourself with gadgets on Windows Live Spaces
 http://discoverspaces.live.com?source=hmtag1loc=us



Its a class set of files, so there is no real install. I just placed the
folder containing the class files in my dir and in the calling page,
required() the main file.


The dompdf.inc.php file is where i handle the filesystem links
-- 

Bastien

Cat, the other other white meat


RE: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei

[/snip]

another option is FPDF from www.fpdf.org another class



the classes are nice since they don't generally require the module to be 
installed.



If you are on Linux, another option might be FOP... 
http://xmlgraphics.apache.org/fop/



  I checked out the first link you provided, and downloaded it. I don't

think I need to edit anything else from the file according to the

webpage http://www.digitaljunkies.ca/dompdf/install.php. I put the

entire extracted directory at my /var/www/html directory. Is there any

suggestion you could provide on how to install it? I don't see any commands 
that it provides in its manual.



Thanks for your help.
Its a class set of files, so there is no real install. I just placed the folder 
containing the class files in my dir and in the calling page, required() the 
main file. 



The dompdf.inc.php file is where i handle the filesystem links
Looks like the files I wanted to turn into PDF are not web pages, but most of 
them are text files. I am still hoping to use the function pdf_new to get this 
to work by assembling some modules. Is what I am trying to do here not possible?

Thanks for your help.

Alice
-- 

Bastien

Cat, the other other white meat

_
Search from any Web page with powerful protection. Get the FREE Windows Live 
Toolbar Today!
http://get.live.com/toolbar/overview

Re: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Bastien Koert
On Mon, Mar 16, 2009 at 1:48 PM, Alice Wei aj...@alumni.iu.edu wrote:

  [/snip]
 another option is FPDF from www.fpdf.org another class

 the classes are nice since they don't generally require the module to be
 installed.

 If you are on Linux, another option might be FOP...
 http://xmlgraphics.apache.org/fop/

   I checked out the first link you provided, and downloaded it. I don't
 think I need to edit anything else from the file according to the
 webpage http://www.digitaljunkies.ca/dompdf/install.php. I put the
 entire extracted directory at my /var/www/html directory. Is there any
 suggestion you could provide on how to install it? I don't see any
 commands that it provides in its manual.

 Thanks for your help.


 Its a class set of files, so there is no real install. I just placed the
 folder containing the class files in my dir and in the calling page,
 required() the main file.


 The dompdf.inc.php file is where i handle the filesystem links
 Looks like the files I wanted to turn into PDF are not web pages, but most
 of them are text files. I am still hoping to use the function pdf_new to get
 this to work by assembling some modules. Is what I am trying to do here not
 possible?

 Thanks for your help.

 Alice
 --

 Bastien

 Cat, the other other white meat

 --
 Search from any Web page with powerful protection. Get the FREE Windows
 Live Toolbar Today! Try it now! http://get.live.com/toolbar/overview


I don't see why not, just create a page that will pull in the data and then
format it nicely

-- 

Bastien

Cat, the other other white meat