Re: [PHP3] evaluate .php3 file into variable
| From: | (Richard Lynch) | Date: | Tue, 13 Jun 2000 23:29:30 +0000 |
| Subject: | Re: [PHP3] evaluate .php3 file into variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1776@lists.php.net to get a copy of this message | ||
In article <39468161.7CBB02A1@isl.net.mx>, niko@isl.net.mx (Nikolai
Vladychevski) wrote:
> is this possible evaluate a php3 file and store the result into a
> variable?
You can use:
<?php
$url = ''http://www.whatever.com/filename.php3';
$html = fopen($url, 'r') or die("$url is down. Try later.<BR>\n");
while (!feof($html)){
//Assumption -- No body writes 1 Gig line of HTML.
$line = fgets($html, 1000000);
echo htmlEntities($line), "<BR>\n";
}
?>
Or maybe what you want is the eval() function... Either could match your
description, depending on what you are asking.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)