Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Error

Status
Not open for further replies.

fueonue

Technical User
Mar 18, 2009
24
US
All of the wuarterback articles linked to from this webpage work fine..


But I had to delete the following articles from that list because they were giving me PHP errors...

Here are the pages that are giving me fits...







I am not a PHP coder, and the coder that did this work for me has dropped off the face of the earth... so in an effort to troubleshoot, I took the page code from a working page and pasted it into a bad page, then saved as... giving me the following page



So essentiall, the only difference between the page above and the page below are filenames, but only one page works????



Please help... I'm going bonkers...
 
We'd need to see the code to advise. PHP does not get sent to the browser, so all we get form those links is error html.

Copy and paste the code here so we may see.

As a starter, and based on the errors if there are any calls to session_start in the code they must be placed before any html code or even whitespace.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
This is the code in the file called "is_logedin.php"

<?php
include_once('config/constants.php');
session_start();
if(!isset($_SESSION['loggedin']) && $_SESSION['loggedin'] != 'Yes' && $_SESSION['userType'] != 'member')
{
header(MEMBER_LOGIN); // Forwards the user to this URL
exit(); // Otherwise show the rest of the page (admin section)
}
?>



======================================

This is the code at the top of the actual viewed pages..

<?php ob_start(); ?>
<!--Checked if loged in or not-->
<?php include_once('../../is_logedin.php'); ?>


======================================

This is the last line of code at the bottom of the actual viewed pages..

<?php ob_flush(); ?>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top