php settings to GLOBAL_OFFS..
is that mean i can't use global variable ?
what is happing i have two file let say config.php and index.php
//config.php
<?
//config.php
$siteurl="http://localhost";
?>
<?
//index.php
include("config.php");
function site() {
{
global $siteurl ;
echo"Your site is $siteurl";
}
?>
why this above code work when globals_off in php settings..
I am confused.. I used to just include the config.php inside function as i thought when global is set to off I can't use global variable.But why it's working
Any answer will be highly appreciated.. thanks .