PHP: How do i access a variable that is in a file that i have include() in the...

...file that accesses it? PHP: If i include X file using include() into Y file and in X file i have $name = 'yahoo'; is $name accessible in the Y file? or do i need to set the $name variable like this - "global $name = 'yahoo';" PLEASE HELP
 
Back
Top