| Author |
Message |
southern Client

Joined: Jan 29, 2004 Posts: 529 Location: Texas
|
Posted:
Tue Apr 11, 2006 10:15 pm |
|
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. |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 7216 Location: Arizona
|
Posted:
Wed Apr 12, 2006 5:41 am |
|
I would try something like this instead:
echo "<!--#e xec cgi=\"/cgi-bin/logger/logger.pl\" -->";
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. |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 4553 Location: Poland
|
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). |
|
|
|
 |
evaders99 Moderator

Joined: Apr 30, 2004 Posts: 2744
|
Posted:
Wed Apr 12, 2006 7:59 am |
|
"#exec cgi" is not an HTML command, it is SSI
I don't believe PHP supports it, you may want check out these pages
|
|
|
|
 |
southern Client

Joined: Jan 29, 2004 Posts: 529 Location: Texas
|
Posted:
Wed Apr 12, 2006 9:09 am |
|
| evaders99 wrote: | "#exec cgi" is not an HTML command, it is SSI
I don't believe PHP supports it, you may want check out these pages
|
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. |
|
|
|
 |
|
|
|
|