i have this php code: <a href='<?php $ex=explode("/", $_SERVER['SCRIPT_NAME']); $fn=$ex[count($ex)-1]; $path=str_replace($fn,"",$_SERVER['SCRIPT_NAME']); $path=substr($path, 1); echo $site.$path; ?>'><img src='<?php echo $site.$path; ?>images/logo.gif' ></a> now, i want the path to be going to: http://babyphotobattle.com/aboutus.php istead of going to the index file. obviously, i dont know how to work on php so any help will be highly appreciated. thanks.
What page is this code running from? Please show where $site is initialised. Also, please echo the variables $ex, $fn, $site and $path and post the results here.