View Single Post
Old 02-04-2007, 01:18 AM  
xenilk
Confirmed User
 
xenilk's Avatar
 
Join Date: Jan 2006
Location: Canuck land!
Posts: 921
i don't think you grasp the concept of include yet.

Why not just do

$id = 'whatever';
include('thefile.php');

then in the 'thefile.php'
if($id ... blabla)
do some process here

... See an include as if the code would be litterally written where you include the file

so if File1.php is
$a = 1;
$b = 2;
include('File2.php');
echo $c;

and File2.php is
$c = $a + $b;

is equal to having a file with
$a = 1;
$b = 2;
$c = $a+$b;
echo $c;

... hope you see what I mean... 3am here, tired.
xenilk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote