vanyok Posted December 11, 2006 Share Posted December 11, 2006 Hi guys I'm confused.. very confused and hope that someone will know what's going on. I have a very simple school homework project that's coming up as a blank page. I dont understand why. Here is the script of index.php:<?php session_start();if (!$_SESSION['userEmail'] && !$_SESSION['userPassword']){include 'hdr.php';include 'content/'.$page.'.php';}else{include 'ProfileResults.php';exit;}include 'ftr.php'; ?>it's located at:http://www.shopperstart.com/vanyok/phphomework/group/I tried on 4 different computer and the web site coming up as a blank page in Interenet Explorer but works fine in Firefox. The problem started after I added sessions so I assume that's the problem. Please help.Thank you in advance. Link to comment Share on other sites More sharing options...
MrAdam Posted December 11, 2006 Share Posted December 11, 2006 when i view it im seeing a few errors. do you have "session_start();" in one of the includes? it's saying:Notice: A session had already been started - ignoring session_start() in /home/shopp/public_html/vanyok/phphomework/group/hdr.php on line 2 Link to comment Share on other sites More sharing options...
vanyok Posted December 11, 2006 Author Share Posted December 11, 2006 Yup.. thats because I added error_reporting(E_ALL); just right now to see if that will help me figure out what's going on.That warrning means that I'm including another php file that has session_start() function as well but it shouldn't cause a problem, should it ? Link to comment Share on other sites More sharing options...
MrAdam Posted December 11, 2006 Share Posted December 11, 2006 .. it's saying it's a problem .. try removing it .. Link to comment Share on other sites More sharing options...
vanyok Posted December 11, 2006 Author Share Posted December 11, 2006 I can't remove session_start()... I mean my my Sessions wont work. Link to comment Share on other sites More sharing options...
MrAdam Posted December 11, 2006 Share Posted December 11, 2006 just remove the second one: hdr.php on line 2 Link to comment Share on other sites More sharing options...
vanyok Posted December 11, 2006 Author Share Posted December 11, 2006 Thanks MrAdam, I found what it was. Appearently I forgot to close the <title> tag on that included hdr.php so the browser was concidering the whole thing as one long title. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now