Re: [PHP] Extracting Output from File...

2004-04-05 Thread Burhan Khalid
Russell P Jones wrote:
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..
You can use file() fopen() (if you have url wrappers on), and then deal 
with the data.

You can also use a browser emulator (snoopy.sourceforge.net) to get the 
information.

Finally, you can create a webservice at outputpage.php and get the 
results as XML.

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


RE: [PHP] Extracting Output from File...

2004-03-30 Thread Martin Towell
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:[EMAIL PROTECTED]
 Sent: Wednesday, 31 March 2004 9:25 AM
 To: [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