Re: include with call

From: Date: Sun, 13 Jan 2002 19:17:55 +0000
Subject: Re: include with call
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-80366@lists.php.net to get a copy of this message
Thanks :) "Cc Zona" <email@cczona.com> wrote in message news:email-E0A7B5.07471913012002@pb1.pair.com... > 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

« previous php.general (#80366) next »