I need a url parse function for php 4.1+ I found the parse_url function but I need to parse the actual url the page is on and not just a constant string value or such.

Im trying to figure out if the page is the home page (index.php) because if its not then I need to do some conditional coding.

Thnaks