if you declare your variables outside the function as global you can use it anywhere and altere its values.
Include the constants.php and just use it
constants.php
<?php
define('SOMETHING', 'stupid');
?>
script.php
<?php
include("constants.php");
global $var=SOMETHING;
function use_global()
{
echo $var;
$var='more';
echo $var;
}
?>
happy coding!!
There are just 10 types of people:
-those who understand binary
-those who don't
José Sabbagh
Mexico City