PDA

View Full Version : [ubuntu] PEAR for PHP


Vegan
December 1st, 2009, 01:33 AM
I was examining a book on PHP and it touched on a extension called PEAR. ON the face of it, PEAR seems to have solutions to program I wanted to convert.

I wanted to used wget URL for a given variable in PHP.

Other ideas seem ugly.

Bachstelze
December 1st, 2009, 02:50 AM
I'm not quite sure what you want to do here. Do you mean you want to make a PHP script that will download a document whose URL is passed as an argument? You don't need PEAR for that, you can use PHP built-in functions like file_get_contents or the cURL functions.