Re: Calling PHP from an HTML page

From: Date: Sun, 30 Jul 2000 20:13:50 +0000
Subject: Re: Calling PHP from an HTML page
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-9091@lists.php.net to get a copy of this message
I'm pretty sure you can't set cookies across different domains. However you can track hits to the link to your dad's site with a dirt-simple script I wrote. have a look at this script: http://phphreak.sxsw.com/ctTracker.phps Basically, you form the hyperlink like this: <a href="http://your.server/ctTracker.php?ClickThru=your.dads.site">Daddy!</a> What ctTracker does is log log the hit to a file (which you could put in the web tree and link to easily) and redirect the browser to your dad's site via the header() function. David Rose Murph wrote: > > http://www.php.net - there is a basic tutorial as well as > > an on-line > > manual and a pdf manual. Beyond that, 'Professional PHP Programming' is > > a good learning source. > > Hi, Nicole. > > Thanks for your reply. I really appreciate your consideration. > > I'm afraid that I've been all over both resources and can't find the answer > that I'm looking for. Here's some quick background: > > My father runs a plain-vanilla website. It's "dumb" since it doesn't have > PHP access from his server. I, however, do. He wants to advertise his site > on other websites by providing a link to his site that will include a query > string. The link on the foreign site will look like: > > <A > HREF="http://www.fathersite.com?id=1">Daddy!</A> > > I need to shove a cookie down the surfer's throat who clicks on that link > and include the identifier in that cookie and I'd like to do it with PHP. > So, the flow would look like: > > Foreign site (click here) > \ > \ > Me and my big, hairy PHP script > / > / > Daddy > > Once on my father's site, the surfer can roam all around but he'd carry that > identifier with him throughout the site. This, I couldn't find an answer to > in the resources listed above. Did I miss something or do you have a better > idea? > > Thanks in advance, > Murph > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#9091) next »