Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: How does the PHP file snews.php know the current url/ location  (Read 2119 times)

schang1984

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
How does the PHP file snews.php know the current url/ location
« on: September 10, 2009, 07:11:56 PM »

I have a question...

I want to add PHP code to this CMS system, but in order to do that I need to know how snews.php know the current location/ url the user is navigating.

In other words:

If the user goes to:

http://www.website.com/page15

I need to know the user is browsing "page15", so I can put extra PHP code that does this:

if ($currentpage = "page15"){
//store in database that user has finally reached page 15...
}

Can someone help me please, thanks!
Logged

schang1984

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
Re: How does the PHP file snews.php know the current url/ location
« Reply #1 on: September 10, 2009, 07:47:05 PM »

Found it! It's the variables:

$categorySEF and $categorySEF
Logged