I was trying to get help with a PHP problem here: http://www.phpbuilder.com/board/showthread.php?s=&threadid=10257645
I may have come up with a solution using JavaScript. I stumbled across AXS Hit Tracking Script (which I'm sure many here have used before). Basically, it tracks hits by using this JavaScript code:
<script type="text/javascript">
<!--
document.write('<img src="/cgi-bin/axs/ax.pl?trans.gif&ref=');
document.write(document.referrer);
document.write('" height="1" width="1" alt="" />');
// -->
</script><noscript>
<img src="/cgi-bin/axs/ax.pl?trans.gif" height="1" width="1" alt="" />
</noscript>
So, apparently his technique is to create an image on the page, where the img src points to a PERL script rather than a real image. And then in the PERL script, he must record where the requests come from.
But I am not a PERL coder. Can anyone show me how/if this same technique can be done in PHP? This would solve my problem in the original thread... and save my a**.
[If you are following the other thread, this would allow me to call the program without using a require...]
Thanks in advance!