if($_SERVER[SCRIPT_NAME]...
change to
if(basename($_SERVER['PHP_SELF']) == 'index.php'){
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
the source of this error is the missing closing brace in line 3 as matthew wrote, errors are usually just before the reported line number
the missing quotes (per the OP) $_SERVER['variable'] will cause another set of problems later
format is not optional
good code editors provide code highlighting that will negate this occurring again
the PHP manual is available online, as a downloadable text,chm ,any number of file types
perhaps, get the php manual and as a last resort, and, when nothing else works[indent] RTFM[/indent]
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
<?php
if(basename($_SERVER['SCRIPT_NAME']) == 'index.php'){
include ('index-header.php');
} else {
include ('page-header.php');
}
?>
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259