Re: Calling PHP from an HTML page
| From: | Murph | Date: | Mon, 31 Jul 2000 01:39:24 +0000 |
| Subject: | Re: Calling PHP from an HTML page | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9097@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.
---
Heh! Dave, thanks for the response! Can you repeat it in English? <chuckle>
You're obviously light-years ahead of me if you can can call your script
"dirt-simple!" I mean that as a compliment! That's incredible!
Here's a couple of follow-up questions, if you don't mind:
Whose web tree would the file be saved to?
And, how would you link to it?
These are probably newbie questions but my resources, noted earlier, don't
really speak to them.
I've got another, more general question: Can PHP be installed on a
commercial server improperly such that I can't break out of a standard HTML
document?
Let's say I write "test.htm" like this:
<HTML>
<? echo "Hello, world!"; ?>
</HTML>
That doesn't quite work for me even as I read this page of the PHP online
manual:
http://www.php.net/manual/language.basic-syntax.php
You don't suppose that for once, THEY'RE the ones screwed up and not me, do
you? <g>
Yours,
Murph