Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to grab name of current page, url


Guest

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...