Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2004032

RE: [PHP] Extracting Output from File... From: Martin Towell (martin.towell <email protected>)
Date: 03/30/04

You should be able to use any of the file commands.
eg. $contents = file("http://www.myserver.com/outputpage.php");

fopen(), etc should all work too.

Martin

> -----Original Message-----
> From: Russell P Jones [mailto:rjones <email protected>]
> Sent: Wednesday, 31 March 2004 9:25 AM
> To: php-general <email protected>
> Subject: [PHP] Extracting Output from File...
>
>
> Basically there is a php page... lets say
>
> http://www.myserver.com/outputpage.php
>
> that picks up some info from a database and echos it out as
> plain text to
> the browser.
>
> I want to use php in a different file to go pick up whatever
> is printed
> out to that file and save it to a variable..
>
> basically like -
>
> $contentofpage = getoutput("http://www.myserver.com/outputpage");
>
> any ideas? I need it to pick up the output, not something
> that actually
> reads the content of the file...
>
> Russ Jones
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> __________ Information from NOD32 1.617 (20040206) __________
>
> This message was checked by NOD32 for Exchange e-mail monitor.
> http://www.nod32.com
>
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php