FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Extension Won't Install
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
PHP Extension Won't Install [message #174291] Tue, 31 May 2011 13:45 Go to next message
Don_ is currently offline  Don_
Messages: 6
Registered: May 2011
Karma: 0
Junior Member
I successfully installed PEAR & PECL on my Windows Apache/XAMPP server. I
am trying to install the PECL FPDF extension (for PDF Forms Data Format
functions).

At my command prompt window, I entered: "pecl list-all" and saw an entry
named "pecl/fpdf" which is "PDF Form Data Format functions". So far so good!

At my command prompt window, I unsuccessfully tried to install this
extension using the following 3 commands.

1. pecl install pecl/fpdf
Above resulted in "No release available for package 'pecl.php.net/fpdf'
Install failed"

2. pecl install www.php.net/fpdf
Above resulted in "Attempting to discover channel www.php.net ... invalid
package name... install failed.

3. pecl install pecl.php.net/package/fpdf
Above resulted in: "Attempting to discover channel pecl.php.net/package...
downloading channel.xml... ... done: 3877bytes.
unknown channel ... invalid package name .... install
failed."

Can anyone tell me what I am doing wrong in my attempt to use the PECL
command to install the fpdf extension?
Re: PHP Extension Won't Install [message #174294 is a reply to message #174291] Tue, 31 May 2011 15:19 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
On 5/31/2011 3:45 PM, Don_ wrote:
> I successfully installed PEAR& PECL on my Windows Apache/XAMPP server. I
> am trying to install the PECL FPDF extension (for PDF Forms Data Format
> functions).
>
> At my command prompt window, I entered: "pecl list-all" and saw an entry
> named "pecl/fpdf" which is "PDF Form Data Format functions". So far so good!
>
> At my command prompt window, I unsuccessfully tried to install this
> extension using the following 3 commands.
>
> 1. pecl install pecl/fpdf
> Above resulted in "No release available for package 'pecl.php.net/fpdf'
> Install failed"
>
> 2. pecl install www.php.net/fpdf
> Above resulted in "Attempting to discover channel www.php.net ... invalid
> package name... install failed.
>
> 3. pecl install pecl.php.net/package/fpdf
> Above resulted in: "Attempting to discover channel pecl.php.net/package...
> downloading channel.xml... ... done: 3877bytes.
> unknown channel ... invalid package name .... install
> failed."
>
> Can anyone tell me what I am doing wrong in my attempt to use the PECL
> command to install the fpdf extension?
>
>

Hi Don,

Posting one time is enough. ;-)

Go here:
http://pecl.php.net/package/fpdf

Then click on the "Download latest".
It seems it isn't there anymore...
So that must be why your pecl tool cannot find it either.

Maybe contact one of the maintainers?

Hartmut Holzgraefe <hholzgra(at)php(dot)net>
Uwe Steinmann <uwe(at)steinmann(dot)cx>

Good luck.
Erwin Moller

--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: PHP Extension Won't Install [message #174295 is a reply to message #174294] Tue, 31 May 2011 15:58 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 5/31/2011 11:19 AM, Erwin Moller wrote:
> On 5/31/2011 3:45 PM, Don_ wrote:
>> I successfully installed PEAR& PECL on my Windows Apache/XAMPP server. I
>> am trying to install the PECL FPDF extension (for PDF Forms Data Format
>> functions).
>>
>> At my command prompt window, I entered: "pecl list-all" and saw an entry
>> named "pecl/fpdf" which is "PDF Form Data Format functions". So far so
>> good!
>>
>> At my command prompt window, I unsuccessfully tried to install this
>> extension using the following 3 commands.
>>
>> 1. pecl install pecl/fpdf
>> Above resulted in "No release available for package 'pecl.php.net/fpdf'
>> Install failed"
>>
>> 2. pecl install www.php.net/fpdf
>> Above resulted in "Attempting to discover channel www.php.net ... invalid
>> package name... install failed.
>>
>> 3. pecl install pecl.php.net/package/fpdf
>> Above resulted in: "Attempting to discover channel
>> pecl.php.net/package...
>> downloading channel.xml... ... done: 3877bytes.
>> unknown channel ... invalid package name .... install
>> failed."
>>
>> Can anyone tell me what I am doing wrong in my attempt to use the PECL
>> command to install the fpdf extension?
>>
>>
>
> Hi Don,
>
> Posting one time is enough. ;-)
>
> Go here:
> http://pecl.php.net/package/fpdf
>
> Then click on the "Download latest".
> It seems it isn't there anymore...
> So that must be why your pecl tool cannot find it either.
>
> Maybe contact one of the maintainers?
>
> Hartmut Holzgraefe <hholzgra(at)php(dot)net>
> Uwe Steinmann <uwe(at)steinmann(dot)cx>
>
> Good luck.
> Erwin Moller
>

You beat me to it, Erwin. Looks like the package has been dropped.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: PHP Extension Won't Install [message #174297 is a reply to message #174291] Tue, 31 May 2011 17:05 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
El 31/05/2011 15:45, Don_ escribió/wrote:
> I successfully installed PEAR& PECL on my Windows Apache/XAMPP server. I
> am trying to install the PECL FPDF extension (for PDF Forms Data Format
> functions).

Do you mean FDF? FPDF is a pure PHP class to generate PDF files:

http://fpdf.org/

The PHP manual page for FDF is:

http://es.php.net/manual/en/book.fdf.php


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Re: PHP Extension Won't Install [message #174298 is a reply to message #174297] Tue, 31 May 2011 17:40 Go to previous messageGo to next message
Don_ is currently offline  Don_
Messages: 6
Registered: May 2011
Karma: 0
Junior Member
Thanks for your responses. I did mean FDF. Your second link,
"http://es.php.net/manual/en/book.fdf.php" shows a listing for FDF functions
that I need to use in my PHP script.

The first responders to this post mentioned
"http://pecl.php.net/package/fpdf" and found out that the "download latest"
link is dead. I noticed this a few days ago and emailed hholzgra(at)php(dot)net
and uwe(at)steinmann(dot)cx, but neither has responded.

So my problem remains; I need to use the fdf functions such as fdf_create()
and have not been able to install them.

(Sorry I screwed up my initial posting and repeated it twice.)

""lvaro G. Vicario"" <alvaro(dot)NOSPAMTHANX(at)demogracia(dot)com(dot)invalid> wrote in
message news:is3744$m60$1(at)dont-email(dot)me...
> El 31/05/2011 15:45, Don_ escribi/wrote:
>> I successfully installed PEAR& PECL on my Windows Apache/XAMPP server.
>> I
>> am trying to install the PECL FPDF extension (for PDF Forms Data Format
>> functions).
>
> Do you mean FDF? FPDF is a pure PHP class to generate PDF files:
>
> http://fpdf.org/
>
> The PHP manual page for FDF is:
>
> http://es.php.net/manual/en/book.fdf.php
>
>
> --
> -- http://alvaro.es - lvaro G. Vicario - Burgos, Spain
> -- Mi sitio sobre programacin web: http://borrame.com
> -- Mi web de humor satinado: http://www.demogracia.com
> --
Re: PHP Extension Won't Install [message #174304 is a reply to message #174298] Wed, 01 June 2011 07:27 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
El 31/05/2011 19:40, Don_ escribió/wrote:
> Thanks for your responses. I did mean FDF. Your second link,
> "http://es.php.net/manual/en/book.fdf.php" shows a listing for FDF functions
> that I need to use in my PHP script.
>
> The first responders to this post mentioned
> "http://pecl.php.net/package/fpdf" and found out that the "download latest"
> link is dead. I noticed this a few days ago and emailed hholzgra(at)php(dot)net
> and uwe(at)steinmann(dot)cx, but neither has responded.
>
> So my problem remains; I need to use the fdf functions such as fdf_create()
> and have not been able to install them.

The manual says the package is abandoned and you have to compile it
yourself from the archived source code:

http://svn.php.net/viewvc/pecl/fdf/trunk/



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Re: PHP Extension Won't Install [message #174306 is a reply to message #174304] Wed, 01 June 2011 17:47 Go to previous messageGo to next message
Don_ is currently offline  Don_
Messages: 6
Registered: May 2011
Karma: 0
Junior Member
Thank you, Alvaro. Could you please point me to the instructions to compile
it?

""lvaro G. Vicario"" <alvaro(dot)NOSPAMTHANX(at)demogracia(dot)com(dot)invalid> wrote in
message news:is4pld$l6d$1(at)dont-email(dot)me...
> El 31/05/2011 19:40, Don_ escribi/wrote:
>> Thanks for your responses. I did mean FDF. Your second link,
>> "http://es.php.net/manual/en/book.fdf.php" shows a listing for FDF
>> functions
>> that I need to use in my PHP script.
>>
>> The first responders to this post mentioned
>> "http://pecl.php.net/package/fpdf" and found out that the "download
>> latest"
>> link is dead. I noticed this a few days ago and emailed hholzgra(at)php(dot)net
>> and uwe(at)steinmann(dot)cx, but neither has responded.
>>
>> So my problem remains; I need to use the fdf functions such as
>> fdf_create()
>> and have not been able to install them.
>
> The manual says the package is abandoned and you have to compile it
> yourself from the archived source code:
>
> http://svn.php.net/viewvc/pecl/fdf/trunk/
>
>
>
> --
> -- http://alvaro.es - lvaro G. Vicario - Burgos, Spain
> -- Mi sitio sobre programacin web: http://borrame.com
> -- Mi web de humor satinado: http://www.demogracia.com
> --
ALternative? wkhtmltopdf. WAS: PHP Extension Won't Install [message #174308 is a reply to message #174291] Thu, 02 June 2011 08:58 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
On 5/31/2011 3:45 PM, Don_ wrote:
> I successfully installed PEAR& PECL on my Windows Apache/XAMPP server. I
> am trying to install the PECL FPDF extension (for PDF Forms Data Format
> functions).
>
> At my command prompt window, I entered: "pecl list-all" and saw an entry
> named "pecl/fpdf" which is "PDF Form Data Format functions". So far so good!
>
> At my command prompt window, I unsuccessfully tried to install this
> extension using the following 3 commands.
>
> 1. pecl install pecl/fpdf
> Above resulted in "No release available for package 'pecl.php.net/fpdf'
> Install failed"
>
> 2. pecl install www.php.net/fpdf
> Above resulted in "Attempting to discover channel www.php.net ... invalid
> package name... install failed.
>
> 3. pecl install pecl.php.net/package/fpdf
> Above resulted in: "Attempting to discover channel pecl.php.net/package...
> downloading channel.xml... ... done: 3877bytes.
> unknown channel ... invalid package name .... install
> failed."
>
> Can anyone tell me what I am doing wrong in my attempt to use the PECL
> command to install the fpdf extension?
>
>

Hi Don,

I don't know what it is you want to do with pdf, but I would like to
advocate a package I have been working with lately.
It is called wkhtmltopdf.
http://code.google.com/p/wkhtmltopdf/

It focusses on generating PDF documents based on HTML.
You DO need to install webkit libs on your server first.

But it works like a charm.
I stopped generating PDFs by hand, which was, well, nothing for me
anyway. ;-)
Now I generate an HTML page that looks EXCATLY how I want it to look,
and then make a PDF of it.

My current code looks like this:
=========================================================
// Where to fetch it?
$url = "http://www.example.com/yourscript.php?id=23;
$fileName = "mypdf.pdf";
$targetName = "srv/hosting/whatever/www/temp_pdf/$fileName";

$cmd = "wkhtmltopdf -O Portrait -s A4 ".escapeshellarg($url);
$cmd .= " ".escapeshellarg($targetName);

// generate the pdf
$res = exec($cmd);
=========================================================

That way I can do what I am good at (HTML) and make PDFs.
I have been trying many many other html -> pdf generators and all fail
somehow, eg no css support, poor css support, poor table support, etc.

But since wkhtmltopdf is based on webkit, it handles it all.
wkhtmltopdf even runs javascript that generates/modifies DOM elements!

Not sure if it is something for you, but it saved me a lot of troubles.
And no, I didn't author the package or something. ;-)

Regards,
Erwin Moller

--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: PHP Extension Won't Install [message #174317 is a reply to message #174291] Fri, 03 June 2011 17:29 Go to previous message
Dr Vangel is currently offline  Dr Vangel
Messages: 1
Registered: June 2011
Karma: 0
Junior Member
> I successfully installed PEAR & PECL on my Windows Apache/XAMPP
> server. I
> am trying to install the PECL FPDF extension (for PDF Forms Data
> Format
> functions).
>
> At my command prompt window, I entered: "pecl list-all" and saw an
> entry
> named "pecl/fpdf" which is "PDF Form Data Format functions". So far so
> good!
>
> At my command prompt window, I unsuccessfully tried to install this
> extension using the following 3 commands.
>
> 1. pecl install pecl/fpdf
> Above resulted in "No release available for package
> 'pecl.php.net/fpdf'
> Install failed"
>
> 2. pecl install www.php.net/fpdf
> Above resulted in "Attempting to discover channel www.php.net ...
> invalid
> package name... install failed.
>
> 3. pecl install pecl.php.net/package/fpdf
> Above resulted in: "Attempting to discover channel
> pecl.php.net/package...
> downloading channel.xml... ... done: 3877bytes.
> unknown channel ... invalid package name ....
> install
> failed."
>
> Can anyone tell me what I am doing wrong in my attempt to use the PECL
>
> command to install the fpdf extension?

I hope you eventually tried

#pecl install fpdf



----------------------------
http://grepler.com groups
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ANN: PDFTron PDF Library for PHP
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 11:13:24 GMT 2024

Total time taken to generate the page: 0.04023 seconds