adamskis_sidefx
09-03-2009, 10:04 AM
Hi, I?ve been playing around with the layout of the navbar and have included some intro text to fill the white space. Our client has asked if it?s possible that this text could change depending upon the page you were on.
I?ve found some php script that should do the job but I am unsure how to implement it. Can someone advise me what steps I need to take to insert the following php script.
<?
$curPageName = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
if ($curPageName == "blog.php") {
echo "This page is blog.php";
}
if ($curPageName == "memberlist.php") {
echo "This page is memberlist.php";
}
?>
Regards - Adam
I?ve found some php script that should do the job but I am unsure how to implement it. Can someone advise me what steps I need to take to insert the following php script.
<?
$curPageName = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
if ($curPageName == "blog.php") {
echo "This page is blog.php";
}
if ($curPageName == "memberlist.php") {
echo "This page is memberlist.php";
}
?>
Regards - Adam