function to check which page a user is on?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
neridaj
Forum Commoner
Posts: 40
Joined: Fri Jan 05, 2007 9:55 pm

function to check which page a user is on?

Post by neridaj »

Hello,

What's the function to check which page a user is on?

Thanks,

Jason
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: function to check which page a user is on?

Post by Christopher »

Call phpinfo() and look at the $_SERVER[] vars. There should be one that contains what you want.
(#10850)
Post Reply