Re: PHP and HTTP requests

From: Date: Mon, 19 Apr 2004 18:51:01 +0000
Subject: Re: PHP and HTTP requests
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-183843@lists.php.net to get a copy of this message
"Aleksei Ivanov" <aivanov@hot.ee> wrote in message news:20040419183943.1844E1CA48@portal.hot.ee... > Hi, > > I realize it's a stupid question but I need a simple solution.. I'd like to get contence from script-generated webpage >(I send a regquest via get or post method to a page and it generates a response page - how do get that page as a string? > Get the source of the page). It's obvious that it cannot be shown with file functions. Only solution I was mentioned vas > CURL package but I'd like to solve this with standard functions. Is it possible? Hi Aleksei, it might be possible to realize with PHP's output buffering functions. You could store the output of the dynamic page you would like to get in the buffer and then pull it into a variable. I don't have any experience with it but take a look here: http://de3.php.net/manual/en/function.ob-start.php Maybe the user comments help. Just an idea. Regards, Torsten Roehr > > Thanks in advance > Aleksei > > ----------------------------------------- > Hot Mobiil - helinad, logod ja piltsõnumid! > http://portal.hot.ee

« previous php.general (#183843) next »