I'm new to the forums. Hey everyone
I'm also a relatively new developer, so can someone explain to me why when I run PHP code through the localhost, it can end up different than when I run the same code online? I beleive it has something to do with the SESSION variable and the session_start() method. When I am running code locally, everything seems to work fine, but online I am having problems where all of the AJAX divs have an error like "session_start() must be called at the beginning of the page".
For all the AJAX divs, I must include session_start(), so I use a require_once 'system_start.php'; and in that file I have the call to system_start(). It seems to me that this should just call system_start() at the top of the first page initially, then never call it again since it is only called using a require_once, but this isn't the case... It is different when posted on the web than running from localhost.
Thanks for the insight.