Re: passing GET via include
| From: | Tijnema ! | Date: | Fri, 04 May 2007 11:15:11 +0000 |
| Subject: | Re: passing GET via include | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254396@lists.php.net to get a copy of this message | ||
On 5/4/07, Oliver Block <lists@block-online.eu> 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----------------- <?phpActually, it will be this: <?php ?> <?php$message="Hello!\n";?> ---------------includer.php------------------ <?phpinclude('includeme.inc'); echo $message;?> ------------------------------------------------- Will be the same as ---------------dont_like_inclusions.php------------------- <?php$message="Hello\n"; echo $message;?> --------------------------------------------------------------- Regards, Oliver
$message="Hello\n";?> <?php
echo $message;?> As you could, for example, include a HTML document :) Tijnema