PHP: <?php $full_path = getenv("REQUEST_URI"); $file = basename ($full_path,".php"); include('head.inc'); include($file.inc); ?> OK, here's what I'm trying to do. Let's say I have a file named "pics.php". There's a corresponding "pics.inc" file that would have all the html formatting. "head.inc" contains my header/banner/links/etc. I'd like for the php to grab the name of the file "pics.php" and automatically know to use "pics.inc". I'm thinking this make my life easier because I'd have files like "ohio.php", "towelshirt.php", "complaint.php". Rather than going into each one of those files and changing the corresdponding *.inc name, I'd like to have it update automatically. Is this making any sense? To test this: www.brianellisrules.com/test/ -> click on Pictorials. It's the only like I have setup to work like this. And it doesn't even work right.