RE: [PHP-DB] Getting info from remote host

From: Date: Mon, 26 Mar 2001 20:12:25 +0000
Subject: RE: [PHP-DB] Getting info from remote host
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7849@lists.php.net to get a copy of this message
I have done this by making a fsockopen call to the remote host (port 80), request the page to be loaded using a http "get", read the returned page into a buffer and parse through it for the information requested. - Brian Hardwick Tangible Networks -----Original Message----- From: ryan_gamo@edwards.com [mailto:ryan_gamo@edwards.com] Sent: Monday, March 26, 2001 2:03 PM To: php-db@lists.php.net Subject: [PHP-DB] Getting info from remote host An outside host cgi script outputs some information, in this case - stock price. They output in plain ascii, stock price and last update on two separate lines. Would PHP be able to request the info from the CGI [it's a URL] and output it onto a page? I asked this here just in case there was some database temporary storage ideas out there too. My idea was to make the http request and load it into an array, to be output in a PHP page. Thanks, Ryan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#7849) next »