problem

From: Date: Tue, 26 Dec 2000 19:14:49 +0000
Subject: problem
Groups: php.general 
Request: Send a blank email to php-general+get-31868@lists.php.net to get a copy of this message
does anyone se an any error in the following code? <?php $pointer = strrpos ($PHP_SELF, "/"); if ($pointer == "" || $pointer == "0"){ $section = strrev ($PHP_SELF); $section = substr ($section, 4 ); $section = strrev ($section); $filename = 'home.images.js'; //set filename to get js images from }else{ $section = substr ($PHP_SELF, 1 , $pointer-1); } } if($section=="company"){ $filename = 'company.images.js'; }elseif($section=="services"){ $filename = 'services.images.js'; }elseif($section=="noc"){ $filename = 'noc.images.js'; }elseif($section=="customers"){ $filename = 'customers.images.js'; }elseif($section=="isps"){ $filename = 'isps.images.js'; }else{ $filename = 'home.images.js; } echo $filename; ?> when i call the page i get a parse error at the last line of the file. the last line isn't php its HTML...this is the only php that i have in the page.....whats going on? ~kurth

« previous php.general (#31868) next »