Home     My Faqts     Contributors     About     Help    

faqts : Computers : Programming : Languages : Php : Language and Syntax : Functions

FAQTs repaired & updated!
Thanks for your patience...
Entry Add Entry Alert - Edit this Entry

Did You Find This Entry Useful?

12 of 17 people (71%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Passing Variables with REQUIRE FUNCTION

Feb 25th, 2000 06:59

Andrew Sheh
Tim Fountain


>I tried using this code but it didn't work:
>require("list.php3?cat=adco&area=all");
>It seems this function will only take an actual file name. Is there a 
>way around this?
ANSWER
As 'require' simply puts the file in the page you're calling it from,
you can set the variables there.  Eg.:
$cat = "adco";
$area = "all";
require("list.php3");



© 1999-2004 Synop Pty Ltd