if($_SERVER[SCRIPT_NAME]...
change to
if(basename($_SERVER['PHP_SELF']) == 'index.php'){
diafol
Keep Smiling
10,655 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,510
Skill Endorsements: 57
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[[b]'[/b]variable[b]'[/b]] 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 RTFM
almostbob
Nearly a Senior Poster
3,280 posts since Jan 2009
Reputation Points: 585
Solved Threads: 399
Skill Endorsements: 7
<?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: 260
Skill Endorsements: 13