Re: Extracting Output from File...
| From: | Burhan Khalid | Date: | Mon, 05 Apr 2004 07:47:10 +0000 |
| Subject: | Re: Extracting Output from File... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182332@lists.php.net to get a copy of this message | ||
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.