[PHP] load a URL and trap output

2004-03-12 Thread Roger Spears
Hello, I have this application which is accessed via a web portal. The first thing my application must do is make sure the visitor is logged in via the portal. The only way to do this is by making a request to a specific URL. This URL (which includes the log in cookie id) will return XML

Re: [PHP] load a URL and trap output

2004-03-12 Thread Tom Meinlschmidt
simple use fopen() or file() as $fp = fopen(http://somedomain/some.url?blablah,r;); and read via fread() /tom On Fri, 12 Mar 2004 10:54:53 -0500 Roger Spears [EMAIL PROTECTED] wrote: Hello, I have this application which is accessed via a web portal. The first thing my application must

Re: [PHP] load a URL and trap output

2004-03-12 Thread Chris Boget
How do I make my application load a URL and trap the returned data so that it never creates any browser output? Aside from the fopen() and fread() that was suggested by another person you can also use the ob_* functions. Chris -- PHP General Mailing List (http://www.php.net/) To

[PHP] load a URL and trap output

2004-03-12 Thread Roger Spears
Tom Meinlschmidt wrote: simple use fopen() or file() as $fp = fopen(http://somedomain/some.url?blablah,r;); and read via fread() Perhaps I was mistaken, I thought: $fp = fopen(http://somedomain/some.url?blablah,r;); fread(); Would just return the actual HTML code of the page and NOT the

Re: [PHP] load a URL and trap output

2004-03-12 Thread Red Wingate
Best way would be filegetcontents() and implode the content with \n. eg: ?php $temp = filegetcontents('http://www.somedomain.com'); $temp = implode ( \n , $temp ); echo $temp ; ? Chris Boget wrote: How do I make my application load a URL and trap the returned data so that it never

Re: [PHP] load a URL and trap output

2004-03-12 Thread Roger Spears
Tom Meinlschmidt wrote: simple use fopen() or file() as $fp = fopen(http://somedomain/some.url?blablah,r;); and read via fread() Then I replied with: Perhaps I was mistaken, I thought: $fp = fopen(http://somedomain/some.url?blablah,r;); fread(); Would just return the actual HTML code of