Re: Installing Pear

From: Date: Thu, 06 Jan 2005 00:13:32 +0000
Subject: Re: Installing Pear
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16711@lists.php.net to get a copy of this message
Nimbus Software wrote:
I have installed Pear using go-pear.bat which came with php-4.3.10-Win32. I installed php-4.3.10-Win32 in C:\Program Files\Apache Group\Apache2\, accepted the defaults in "go-pear.bat" and modified php.ini with include_path = ".;C:\Program Files\Apache Group\Apache2\php-4.3.10-Win32\pear". When I move basic.php into C:\Program Files\Apache Group\Apache2\htdocs and access it with a browser I get: Warning: fsockopen(): php_network_getaddresses: gethostbyname failed in C:\Program Files\Apache Group\Apache2\php-4.3.10-Win32\pear\Net\Socket.php on line 108 Warning: fsockopen(): unable to connect to mail.example.com:25 in C:\Program Files\Apache Group\Apache2\php-4.3.10-Win32\pear\Net\Socket.php on line 108 Failed to connect socket: The operation completed successfully. What am I doing wrong?
It looks like basic.php is trying to access mail.example.com. Change the server and it should work. Your PEAR installation is working, because clearly Net/Socket.php exists and is triggering the error. Greg

« previous php.pear.general (#16711) next »