On 5/4/07, Oliver Block <[EMAIL PROTECTED]> wrote:
Am Freitag, 4. Mai 2007 09:22 schrieb Mark Smith:
> Hello all,
> Is there a way to allow the passing of variables to included scripts
See it another way: The includED script will be part of the includING script.
---------------includeme.inc-----------------
<?php
$message="Hello!\n";
?>
---------------includer.php------------------
<?php
include('includeme.inc');
echo $message;
?>
-------------------------------------------------
Will be the same as
---------------dont_like_inclusions.php-------------------
<?php
$message="Hello\n";
echo $message;
?>
---------------------------------------------------------------
Regards,
Oliver
Actually, it will be this:
<?php
?>
<?php
$message="Hello\n";
?>
<?php
echo $message;
?>
As you could, for example, include a HTML document :)
Tijnema
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php