Jump to content

Recommended Posts

Hey,

 

The other day i transfered a website to my laptop that runs mysql5 and newest php, and it was giving me a ton of errors because my web host uses mysql4 and php 4.4.8.

 

My laptop is giving me an error saying session_start is being ignored in my header file because it was called already in the main page.

 

Which is a better location for session_start() ? in the header.php which is include(''); into each page, or call session_start at the very beginning before the header or anything else.

Link to comment
https://forums.phpfreaks.com/topic/103076-solved-session_start-twice/
Share on other sites

Also, the warnings and notices you are seeing now were always present in your code, but the display_errors and/or error_reporting settings were preventing you from seeing them. This is not a php4 vs php5 problem, but code that is doing things incorrectly and was developed in an environment that hid the problems.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.