I want to use a cgi scri pt written in perl and ran from the cgi-bin folder to monitor and log visitors to the index.php of my site and the code has to be put in the index page. I put it
Code:
<!--#e xec cgi=\"/cgi-bin/logger/logger.pl\" -->
in complete with slashes before quotes at the bottom of my index.php right before the closing tag and got a blank page so I removed it and dropped over here to find out how to use cgi with nuke. Disregard spaces in scri pt and e xec.
However, I have not seen that type of call before. I am doubtful that it will work. You may need to consult with the authors on how to call this from PHP.
Your other option, and one that I would recommend highly, is installing and using NukeSentinel and use its IP Tracking features.
Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
Posted:
Wed Apr 12, 2006 6:05 am
I use 'IP Tracking' module as well as Sentinel as it shows me, more or less in real-time what is on my site by IP and/or useragent (useful for spotting bad bots and cralwers etc).
"#exec cgi" is not an HTML command, it is SSI
I don't believe PHP supports it, you may want check out these pages
Only registered users can see links on this board! Get registered or login to the forums!
Only registered users can see links on this board! Get registered or login to the forums!
Well, it's an education at least. It seems that PhP began as Perl and many of the commands are similar so hypothetically there's no reason they can't work together. As in
Code:
<?php
virtual('cgi-bin/logger/logger.pl');
?>
might work, I'll try it. It may work in the html of a theme template and I'll try that. Or maybe called from my_header.php... I do have Nukesentinel 2.4.2 pl5 and IP Tracking so that is not an issue, it's just I got curious about the logger.pl sc ript and want to try it. I can use it in my .shtml error pages if nothing else. Thanks for the leads, I might learn something. Thanks, too, Guardian and montego.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum