![]() Topic awaiting preservation: Scoping included pages (PHP) (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() SO I've checked the online doc's and haven't found an answer to this so I'm hoping someone here can help. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() Instead of using a function, why don't you simply put the same code somewhere with the rest of main code. If you still want to use a function, use it only for validation, including should be done outside the function... |
Paranoid (IV) Inmate From: Lebanon |
![]() Good question! code: <?
code: <?
|
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() quickest fix: Declare the variables you want to have in the includes global in the function that includes the includes. |