Re: include() question...

From: Date: Thu, 20 Jun 2002 23:52:07 +0000
Subject: Re: include() question...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103220@lists.php.net to get a copy of this message
> but, if i want to send a user to a website along > with a variable like... > > $temp = "website.php?var=".$var; > include($temp); > > ...this doesn't work. Example: <?php $var = 'foo'; include 'somefile.php'; ?> somefile.php now has access to $var. This is talked about in the manual too: http://www.php.net/include In your case above, $var will already be available to website.php if you simply include it. Regards, Philip Olson

« previous php.general (#103220) next »