I am trying to fully understand how to rewrite a lot of code to work on PHP-4.1.2 with globals off.
I have yet to find any examples, most use globlas switched on.
Does anyone know of the whereabouts of an mini program example, a few lines does not give me much of a clue.
A couple of immediate queries are:-
Should you use session_start() within every function?
In my config, I define
$_SESSION['new_window_width'] = 400;
instead of $new_window_width = 400;
However, when called within a Javascript coded script it does not appear to read what it had read before.
Where am I going wrong??
Any help with the new way of coding would be very much appreciated.
Thanks.