globally accessing variable in php

deepakagrawal's Avatar
Newbie Member
I am deepak, i am desiging a website on php, so on can i make a variable in such a way so thai i can access that variable on other file, such as when we declare a extern variable in 'c' and we can access on other file ....
So pls tell me can i do same as on "php".
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
use the global $Varname and you will get the variable in the other file