Event from another site?

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
Zavin
Forum Newbie
Posts: 11
Joined: Fri Feb 29, 2008 6:28 pm

Event from another site?

Post by Zavin »

Is it possible that if someone enters my site from another site that an event can occur? For example can I have any entry entered into my database if a user come to my site from a specific site?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Event from another site?

Post by califdon »

Zavin wrote:Is it possible that if someone enters my site from another site that an event can occur? For example can I have any entry entered into my database if a user come to my site from a specific site?
We often think of visitors "entering" a web site, but what is really happening is that an HTTP request is received by the web server, in response to which the server may send a page back to the requestor or perform some other action. PHP can obtain data from every HTTP request and use that to log visitors or anything else. Here's a good discussion of obtaining the URL of the site from which a link has brought a visitor to your site:
http://forums.digitalpoint.com/showthread.php?t=835
Post Reply