Quantcast
Channel: PHP dynamic include other .php files - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by luchosrock for PHP dynamic include other .php files

Try calling session_startbefore session_start(); if (!isset($_SESSION['login'])) { $_SESSION['login'] = 1; $_SESSION['role'] = "guest"; $_SESSION['navi'] = "/view/navigation_guest.php";...

View Article



Answer by n-dru for PHP dynamic include other .php files

The $_SESSION array doesn't exist until you use session_start(), so before you start it, you will never get any value from session and you cannot add to it either.

View Article

PHP dynamic include other .php files

I am new to php coding and I hope you can help a java-boy out of the trouble.I try to include navigation menu and content dynamicly in the "index.php".If Í test the code below, I only get the same...

View Article
Browsing all 3 articles
Browse latest View live


Latest Images