PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and get the following warning:
Notice: A session had already been started - ignoring session_start() in C:\wamp\www\session\include.php on line 2
Of course my project has several files but have the same issue as above. How would I solve this without turning warning switches off in php.ini file. Your help is appreciated. Thank you in advance.
The simplest way is just don't use session_start() in a file that will always be included, and always use session_start() in any other file that needs it. If the main file always has it at the beginning, you shouldn't repeat it in another file that's simply going to be copied into the main one.