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

2001-03-26 Thread CC Zona

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] wrote:

 My idea was to make the http request and load it into an array, to be
 output in a PHP page.

http://www.php.net/manual/en/function.file.php

-- 
CC

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-03-26 Thread Brian Hardwick

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 26, 2001 2:03 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]