Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End php variable problems Re: php variable problems

#66722
clokey2k
Participant

Darn, I thought I had close. Variable scopes have always forced me crazy. I have just read the man pages include section which agrees with you @gno.
Variables that are in an included file inherit the scope in the original document calling it. So if the file is included as part of a function, then variables would not be available outside of the function. Hopefully that has set me straight!
I also hope that I have not added confusion to the original issue. Maybe representing some code here could help diagnose the issue a little further?