Re: Re: talking to a web page

From: Date: Wed, 03 Dec 2003 23:15:29 +0000
Subject: Re: Re: talking to a web page
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-171746@lists.php.net to get a copy of this message
Well, technically, you should be using the PEAR installer script to install PEAR packages. http://pear.php.net/manual/en/installation.php Barring that, you can make yourself a PEAR directory somewhere and add it to your include_path in your php.ini. Also note that you have to have all of the dependencies for those packages. Easiest way to go is to use the PEAR installer if you're just getting started. David T-G wrote:
Justin, et al -- ...and then Justin Patrin said... % % One last thing. If all you need to do is go to a page and not navigate % it, you could just use HTTP_Request, upon which HTTP_Client is built. That sounds even better; I'm only going to be dealing with a couple of pages. % Then again, if you have multiple request to do and have to keep sending % the auth data, the Client would be best. I'll try either both. I'm having some trouble getting started, though... I surfed over to pear.php.net, found and downloaded both (yikes, Client is only a 0.2 release :-) and opened them up. I made /usr/local/lib/php/HTTP and then copied each's contents in there (well, the docs/ over to the lib docs file), so I now have /usrlocal/lib/php/HTTP/Client.php /usrlocal/lib/php/HTTP/Client/CookieManager.php /usrlocal/lib/php/HTTP/Client/Listener.php and similar for HTTP_Request but when I run a simple echo "<?php require_once('HTTP/Client.php') ; print 'done';?>" |php -q I get back "Failed opening required 'HTTP/Client.php'" :-( Is there a different install procedure? TIA & HAND :-D


« previous php.general (#171746) next »