View Single Post
Old 04-04-2008, 11:49 PM   #10 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

They should be declared static if you're accessing them like so, yes. I will wait until you've further tested that, however, before we go any further so we remain on the same page.

As for suppressing warnings of session_start, I do this because of the following addition:

Quote:
As of now, calling session_start() while the session has already been started will result in an error of level E_NOTICE. Also, the second session start will simply be ignored.
Thus suppressing it will ensure no notice is shown, but will nevertheless guarantee that a session is started. However, with that said, programmers should really be ensuring it is started themselves, and so those 2 error suppressing lines -- 1 in each function, should be removed when in the capable hands of a competent programmer.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote