Jump to content

Help with http_referer


Skepsis

Recommended Posts

Hi, first off, I didn't see an introduction forum, so I wasn't able to post an intro post. 

 

I'm wanting to make a script that allows me to tell the users, what page the other user is visiting.

 

The thing is, I don't want them to see,

http://www.website.com/members.php

When I use REQUEST_URI

It outputts:

./dev/online.php?act=guests.

 

Which would be eaiser to use, REQUEST_URI, or HTTP_REFERER?

 

I want them see:

Viewing page >> Members

 

What exactly would I have to do to take off the file extension? Also how would I remove the website address, so i can output what I want for them?

 

Thanks in advance,

Matt

Link to comment
https://forums.phpfreaks.com/topic/144079-help-with-http_referer/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.