Hey, i made a little quick PHP script for a small hack i needed. this is what i come up with, i am always looking to improve my code. Does anyone see a better way to do it? <?php // Get the current URL and extract the file name function curPageName() { $currentPage = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1); if ($currentPage == "index.php"){ return "1"; } else { return "2"; } } ?> <?php // If the index.php file is open don't include the $menu_box if (curPageName()==1){ } else { echo $menu_box_header; echo '<div id="exp1102170142">'; echo $menu_box_content; echo ' </div>'; } ?> Code (markup):