awebster Posted November 3, 2013 Share Posted November 3, 2013 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 ofDeprecated: 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 More sharing options...
Larry Posted November 3, 2013 Share Posted November 3, 2013 Well, the first error won't stop it from working. The second error is more important and seems to be incomplete. Could you post the full message? Also, what PEAR package will you be installing? Link to comment Share on other sites More sharing options...
awebster Posted November 3, 2013 Author Share Posted November 3, 2013 i am installing pear 1.1.6. thats what it says on the page as the package. The full error message is ErrorWarning: fsockopen() [function.fsockopenC:\wamp\www\go-pear.php on line 1074download 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 More sharing options...
awebster Posted November 3, 2013 Author Share Posted November 3, 2013 Also do I select the two checkboxes for PEAR_Frontend_Gtk2 Graphical PEAR installer based on PHP-Gtk2 MDB2 database abstraction layer. Link to comment Share on other sites More sharing options...
Larry Posted November 4, 2013 Share Posted November 4, 2013 Okay, well the error means you can't install PEAR because your PHP setup isn't configured properly (specifically to allow fsockopen() over SSL). As for the checkboxes, I have no idea what you're talking about there. Link to comment Share on other sites More sharing options...
awebster Posted November 4, 2013 Author Share Posted November 4, 2013 Those are the checkboxes that showed up when I tried to install them. What settings do I need to change to allow this? Is it in the PHP.ini file? Link to comment Share on other sites More sharing options...
Larry Posted November 5, 2013 Share Posted November 5, 2013 Let's step back a couple of steps: can you explain why you're installing PEAR? Like what specific PEAR packages are you intending to use? Link to comment Share on other sites More sharing options...
awebster Posted November 5, 2013 Author Share Posted November 5, 2013 I am trying to do what is on page 143-147 of the book because I wanted to have the phpDocumentor that you used in your book on my WAMP server. Link to comment Share on other sites More sharing options...
Antonio Conte Posted November 5, 2013 Share Posted November 5, 2013 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 More sharing options...
awebster Posted November 6, 2013 Author Share Posted November 6, 2013 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 More sharing options...
Antonio Conte Posted November 6, 2013 Share Posted November 6, 2013 Did you ask him about Composer? I study Computer Science myself, and the teachers aren't necessarily always updated on the newest technologies. Composer is "the new" pear. Pear is a pain in the butt to use, so spare yourself the agony and jump on to the composer train. 1 Link to comment Share on other sites More sharing options...
awebster Posted November 6, 2013 Author Share Posted November 6, 2013 What are the steps to install it then? Link to comment Share on other sites More sharing options...
Antonio Conte Posted November 7, 2013 Share Posted November 7, 2013 Google it. The installation is pretty straight forward. My MacBook broke yesterday, and my iPhone is hard to write on. Hope you don't mind. Link to comment Share on other sites More sharing options...
HartleySan Posted November 7, 2013 Share Posted November 7, 2013 Here's a pretty good intro on Windows: http://www.youtube.com/watch?v=Ejr4Xqs9V2I Link to comment Share on other sites More sharing options...
awebster Posted November 8, 2013 Author Share Posted November 8, 2013 Is composer the same thing as Pear? So i can use the phpDocumentor. Link to comment Share on other sites More sharing options...
HartleySan Posted November 9, 2013 Share Posted November 9, 2013 I thought this page offered a good comparison: http://www.phptherightway.com/#dependency_management Link to comment Share on other sites More sharing options...
awebster Posted December 27, 2013 Author Share Posted December 27, 2013 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 ErrorWarning: fsockopen() [function.fsockopenC:\wamp\www\go-pear.php on line 1074download 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 More sharing options...
another_noob Posted December 27, 2013 Share Posted December 27, 2013 I found this at SO http://stackoverflow.com/questions/1705856/socket-transport-ssl-in-php-not-enabled perhaps it will help. Link to comment Share on other sites More sharing options...
Antonio Conte Posted December 28, 2013 Share Posted December 28, 2013 You need to enable the SSL extension in your php.ini. Link to comment Share on other sites More sharing options...
awebster Posted December 28, 2013 Author Share Posted December 28, 2013 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 More sharing options...
Larry Posted December 31, 2013 Share Posted December 31, 2013 Could you provide the explicit steps you took that resulted in those error messages? Link to comment Share on other sites More sharing options...
awebster Posted January 6, 2014 Author Share Posted January 6, 2014 I uncommented the ssl line in the php.ini file. I ran through the steps on the go-pear.php page and then it came up with those errors. Link to comment Share on other sites More sharing options...
Recommended Posts