Topic awaiting preservation: Scoping included pages (PHP) (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 07-05-2002 23:19
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 |
posted 07-06-2002 08:42
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 |
posted 07-06-2002 08:51
Good question! code: <?
code: <?
|
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-06-2002 09:41
quickest fix: Declare the variables you want to have in the includes global in the function that includes the includes. |