Scope scope scope
Ok, so I'm being a complete newbie and getting stuck with scope. How should I be doing this?
PHP Code:
|
Aha, gotta declare the vars again in each proc.
How do I globally define the $file, since I don't know datatype? |
All fixed. To anyone who stumbles across this with the same problems:
1) global variables need to be defined in the procedure as well as outside the proc. 2) file id's can be defined globally by doing: PHP Code:
|
They can also be defined in one line.
PHP Code:
|
All times are GMT. The time now is 02:02 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018