Re: problem
| From: | Kevin Leavell | Date: | Tue, 26 Dec 2000 19:27:30 +0000 |
| Subject: | Re: problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31870@lists.php.net to get a copy of this message | ||
}else{
$section = substr ($PHP_SELF, 1 , $pointer-1);
}
}
Looks like an extra bracket...
Kevin
----- Original Message -----
From: Kurth Bemis <kurth@usaexpress.net>
To: <php-general@lists.php.net>
Sent: Tuesday, December 26, 2000 12:14 PM
Subject: [PHP] problem
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net