Could someone look at this and give me an idea? What I'm trying to do is..
if someone goes to www.mydomain.com/index2.php, I want $pageNumber to be "home", but if it has .../index2.php?pg="anything", i want $pageNumber to be "anything". I tried basename(), but as expected because index2.php is the basename, it always gives me "home". I'm sure it has something to do with parse_url() or something besides basename, but I can't figure it out.
<?php
if (basename('index2.php'))
{$pageNumber=('home');}
else
{$pageNumber=$_GET['pg'];}
?>
<?php include($pageNumber.'.html');?>
thanks
matt