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

From: Date: Tue, 30 Mar 2004 23:28:22 +0000
Subject: RE: [PHP] Extracting Output from File...
Groups: php.general 
Request: Send a blank email to php-general+get-181878@lists.php.net to get a copy of this message
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.unc.edu] > Sent: Wednesday, 31 March 2004 9:25 AM > To: php-general@lists.php.net > 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 > > > >

« previous php.general (#181878) next »