Guest Posted January 28, 2009 Share Posted January 28, 2009 hi I'm having a silly moment, is there a way to grab the page name from the url? I am modifying a contribution and I want part of it to recognise if I am on the products_new.php page, even if for example the url reads http://www.testsite.com/catalog/products_new.php?sort=2d. I am sure I can extract the products_new.php part, I just cant remember how. Many thanks/ Luke Link to comment Share on other sites More sharing options...
germ Posted January 28, 2009 Share Posted January 28, 2009 basename($PHP_SELF) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted January 28, 2009 Share Posted January 28, 2009 basename($PHP_SELF) thank you, VERY MUCH! :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.