Okay I've put session_start();
on the 2nd line (right under open PHP tag)
@ top of the document, yet PHP is saying
I've already sent a header...
Here's the error message:
Warning: Cannot modify header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\lpnew\tpl\header.php:20) in c:\program files\apache group\apache\htdocs\lpnew\ccp\login.php on line 25
Here's the header.php file (first 30 lines):
<?php
$site = "/lpnew";
$server = "localhost";
$user = "mysqluser";
$pass = "**********";
$db = "demo";
$table = "gdccp";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-Strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="imagetoolbar" content="no" />
<title>Leonisknovo Productions Hosting - <?php echo "$title"; ?></title>
<meta name="Description" content="Welcome to Leonisknovo Productions Hosting; we offer solutions that meet your needs, no matter if it be hosting for a small personal site, or a vital site for your business-- we will help you, and if we cannot, then we will find someone who can!" />
<meta name="Keywords" content="<?php echo "$meta"; ?>" />
<meta name="Generator" content="NotePad" />
<meta name="Date" content="2004-05-21" />
<meta name="Owner" content="Jonathan S" />
<meta name="Author" content="http://Gamer Designs.com" />
here's login.php (first 10 lines):
<?php
session_start();
$title = "ClientCP";
$meta = "Leonisknovo Productions Hosting clientCP Client Control Panel Gamer Designs GamerDesigns GamerDesigns.com Support Helpdesk";
require(".../tpl/header.php");
?>
<div class="header">Client Control Panel (ClientCP)</div>
<div class="normal">
So ~ any reason WHY
PHP is claiming I've sent out the header??is another script including those files?
*edit* nevermind, you include headre.php with login.phpyea; but as you see, I'm making
sure I include it AFTER I do session_start(); ...
Thats why its baffling me fixed it; I basicly put a
PHP block with session_start() @ top,
closed it, then put a 2nd block
that had all the $title, $meta, etc. stuff.
on the 2nd line (right under open PHP tag)
@ top of the document, yet PHP is saying
I've already sent a header...
Here's the error message:
Warning: Cannot modify header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\lpnew\tpl\header.php:20) in c:\program files\apache group\apache\htdocs\lpnew\ccp\login.php on line 25
Here's the header.php file (first 30 lines):
<?php
$site = "/lpnew";
$server = "localhost";
$user = "mysqluser";
$pass = "**********";
$db = "demo";
$table = "gdccp";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-Strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="imagetoolbar" content="no" />
<title>Leonisknovo Productions Hosting - <?php echo "$title"; ?></title>
<meta name="Description" content="Welcome to Leonisknovo Productions Hosting; we offer solutions that meet your needs, no matter if it be hosting for a small personal site, or a vital site for your business-- we will help you, and if we cannot, then we will find someone who can!" />
<meta name="Keywords" content="<?php echo "$meta"; ?>" />
<meta name="Generator" content="NotePad" />
<meta name="Date" content="2004-05-21" />
<meta name="Owner" content="Jonathan S" />
<meta name="Author" content="http://Gamer Designs.com" />
here's login.php (first 10 lines):
<?php
session_start();
$title = "ClientCP";
$meta = "Leonisknovo Productions Hosting clientCP Client Control Panel Gamer Designs GamerDesigns GamerDesigns.com Support Helpdesk";
require(".../tpl/header.php");
?>
<div class="header">Client Control Panel (ClientCP)</div>
<div class="normal">
So ~ any reason WHY
PHP is claiming I've sent out the header??is another script including those files?
*edit* nevermind, you include headre.php with login.phpyea; but as you see, I'm making
sure I include it AFTER I do session_start(); ...
Thats why its baffling me fixed it; I basicly put a
PHP block with session_start() @ top,
closed it, then put a 2nd block
that had all the $title, $meta, etc. stuff.