Re: passing GET via include

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

 



On 5/4/07, Oliver Block <lists@xxxxxxxxxxxxxxx> 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


[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