php GURUs
ok, here is my story
i have 2 or 3 pages
the first page must have this code below;
page1.php
<?php
$my_variable = "Testing.";
?>
and the second page has this codes below,
page2.php
<?php
echo "$my_variable";
?>
page3.php
<?php
echo "$my_variable"; //the same with page2.php
?>
now what do i do?, to make $my_variable available to all
the pages2.php, pages3.php? how?
and check these out;
private vars; //does php have this command?
and also
public vars: //does php have this command?
and also.
private vars: //does also php have this command?
and lastly.
local vars: //is this also accepted by php?
any bright answers will be very, very appreciated. 🙂
THANK YOU VERY MUCH in advance GURUs...!
-/james/