Output of html without using functions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux