Page 1 of 1

Globally accessing variable in php

Posted: Fri Apr 13, 2007 12:42 am
by deepakagrawal1982
Hello,
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".
Thanks

Posted: Fri Apr 13, 2007 1:05 am
by Benjamin
You'll probably want to use sessions or cookies.

Posted: Fri Apr 13, 2007 12:18 pm
by bpopp

Posted: Fri Apr 13, 2007 2:23 pm
by RobertGonzalez
You could also use a database, though I think sessions would better.