Re: How to get "executed php result" in variable
| From: | Haseeb | Date: | Mon, 14 Jul 2003 22:01:26 +0000 |
| Subject: | Re: How to get "executed php result" in variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155060@lists.php.net to get a copy of this message | ||
hi,
or if you want to get parsed result of a php page. which may contain HTML
you can use CURL for this purpose.open your page with curl and it will give
you result in a variable or you could use socket functions. everyone here
will present you with different idea's coz there are different ways for
doing this. HTH
Haseeb
-------Original Message-------
From: Ryan Gibson
Date: Monday, July 14, 2003 02:46:01 PM
To: Tariq Murtaza; php-general@lists.php.net
Subject: Re: [PHP] How to get "executed php result" in variable
Hi,
Put a return statement at the end of file
'get_executed_php_file_contents.php' that returns the value you need, then
use:
<?
$result = include("get_executed_php_file_contents.php");
?>
On 14/7/03 10:31 am, "Tariq Murtaza" <tariq@smeda.org.pk> wrote:
> Dear All,
>
> I need to get results like this.............
>
> <?
> $result = get_executed_php_file_contents.php
> ?>
>
> Looking for some solutions............
> TM
>
Ryan Gibson
-----------
ryan_gibson@jmp-partnerhip.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php