Output of html without using functions?
| From: | Gustav Wiberg | Date: | Wed, 14 Sep 2005 07:40:46 +0000 |
| Subject: | Output of html without using functions? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-222357@lists.php.net to get a copy of this message | ||
Hi there!
Look at the following code
code1.php
<?php
echo rand(1,10000);
?>
code2.php
//Here I want to get the output of code1.php without using functions. Is it possible?
//
//Something like $test = require("http://<domain>/mobil_info.php"); but instead of returning 1 at success I want to return the random value...
Why? Because I want to be platform independent. I'm connecting to a server running PHP 4.3.11.
Ideas? Please give me!
/G
http://www.varupiraten.se