Re: libwww for PHP

From: Date: Tue, 13 Mar 2001 18:19:44 +0000
Subject: Re: libwww for PHP
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1817@lists.php.net to get a copy of this message
Ok so I've started. But now pear gives me UAEs in PHP (latest version installed from newest PHP Triad (beta) (also occurs on older versions) under WinNT 4 service pack 6. Here's the code: <?php require_once 'PEAR.php'; class Net_HTTP extends PEAR { function connect($host,$port=80) { include_once('Socket.php'); $this->socket = new Net_Socket(); if (PEAR::isError($this->socket)) { return new PEAR_Error('unable to create a socket object'); } if (PEAR::isError($this->socket->connect($this->host, $this->port))) { return new PEAR_Error('unable to open socket'); } return true; } } $cla=new Net_HTTP; $cla->connect("google.com"); ?> Suggestions for fixes?

« previous php.pear (#1817) next »