Re: include with call
| From: | CC Zona | Date: | Sun, 13 Jan 2002 15:47:19 +0000 |
| Subject: | Re: include with call | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80356@lists.php.net to get a copy of this message | ||
In article <20020113140601.44865.qmail@pb1.pair.com>,
calhoun@jsa3d.co.uk (John Cuthbert) wrote:
> I have a file which does several different things depending on how its
> called Ie
> file?mode=show is to show it etc
>
> But I want to include the output from the show so I tried
> <?php include("file.php?mode=show"); ?> but this causes errors. It goes away
> with including as only file.php but doing that also causes problems because
> mode isnt set yet.
$mode='show';
include("file.php");
Include() brings in the content of a file just as if you'd copy/pasted it
there. It's not an HTTP GET request.
--
CC