help required recording url access

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
glenn_obrien
Forum Newbie
Posts: 5
Joined: Sat Oct 03, 2009 5:55 am

help required recording url access

Post by glenn_obrien »

I am successfully reporting rss from a sql database. However, i only want to publish the content when the url is accessed? the urls are created on the fly from a .htaccess file and a template page.

How can i tell the RSS to show content only when user has accessed URL?

I created a new table in the db, but not sure how i add data for the user in the field when the urls are created?

does this make sense?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: help required recording url access

Post by jackpf »

glenn_obrien wrote:does this make sense?
Not really :P

What do you mean by "when the url is accessed"?
glenn_obrien
Forum Newbie
Posts: 5
Joined: Sat Oct 03, 2009 5:55 am

Re: help required recording url access

Post by glenn_obrien »

Sorry,

I have an .htaccess file that creates urls based on a profile script. For example, MyName is held in a db with other info about me. when a user select the link.http://www.mysite.com/MyName a template shows with info in it specific to me. This works and currently i am trying to rss feed a report of the urls opened.

My Rss is working, but is showing the whole list of entries and is not waiting for the url to be opened before reporting the info. So i only want data to show once the url has been accessed.

I am stuck on how to send that data to my rss reader. Basically something that says:

For each entry in the db
if url has been accessed show data - else dont show data

hope that helps

thanks

g
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: help required recording url access

Post by jackpf »

I'm still not entirely sure what you mean...

But, you could set a cookie on whatever page they need to access to show the RSS. Then, check if the cookie exists on the page displaying the RSS. If it does, display the RSS, if not, then don't.
Post Reply