Jump to content
Larry Ullman's Book Forums

Recommended Posts

I have a windows 7 home premium 64 bit laptop with WAMP.  My Wamp 2.2 settings are Apache: 2.2.22, PHP: 5.3.13, and MySQL: 5.5.24.  I tried to install the go pear file and put it into my www directory and it gave me an error of
Deprecated: Function ereg() is deprecated in C:\wamp\www\go-pear.php on line 1451

 

Then i get an error of

Warning: fsockopen() [function.fsockopenC:\wamp\www\go-pear.php on line 1074

 

After I try to click the next on the prompt that pops up.  How can I fix it so that I can get pear to work so that I can work through the rest of the chapters.  I got the go-pear.php at http://pear.php.net/go-pear and did a save page as.

 

 

Link to comment
Share on other sites

i am installing pear 1.1.6.  thats what it says on the page as the package. The full error message is Error



Warning: fsockopen() [function.fsockopenC:\wamp\www\go-pear.php on line 1074



download of https://raw.github.com/pear/pear-core/master/PEAR5.php failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (70376592)

Link to comment
Share on other sites

Pear is the previous way of doing things. You should instead download composer and install the package found in the link below. All major software in the PHP community is moving in that direction, and you should move in that direction to. Things move quickly in the programming world. Packagist and Composer is just another package repository, though, so this is more of a move in infrastructure than in the way of actually doing things.

 

https://packagist.org/packages/phpdocumentor/phpdocumentor

Link to comment
Share on other sites

PEAR might be the previous way of doing things but it is what is written in the book and used by most servers that I work for and I am going to be adding pear to them once I figure out how to use it.  I asked my professor about it and what they thought of Pear and they said it was really good to use.

Link to comment
Share on other sites

  • 1 month later...

I still can not install composer.  I think I am going to stick with PEAR.  My settings on my laptop again are windows 7 home premium 64 bit laptop with WAMP.  My Wamp 2.2 settings are Apache: 2.2.22, PHP: 5.3.13, and MySQL: 5.5.24.  I want to be able to use the phpDocumentor.  My first error is Deprecated: Function ereg() is deprecated in C:\wamp\www\go-pear.php on line 1451 . My second error is Error



Warning: fsockopen() [function.fsockopenC:\wamp\www\go-pear.php on line 1074



download of https://raw.github.com/pear/pear-core/master/PEAR5.php failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (71816640). 

 

How can I change it so that it doesn't have the deprecated function and then the warning?

Link to comment
Share on other sites

I did that and now i get Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\temp\PEAR\Config.php on line 786

 

and

Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\temp\PEAR\Registry.php on line 1183

 

more than once.  Is there  a pear download I can get for my version of PHP??

Link to comment
Share on other sites

 Share

×
×
  • Create New...