Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.1
Author Message
southern
Client



Joined: Jan 29, 2004
Posts: 624

PostPosted: Tue Apr 11, 2006 10:15 pm Reply with quote

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.
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Wed Apr 12, 2006 5:41 am Reply with quote

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.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Apr 12, 2006 6:05 am Reply with quote

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).
 
View user's profile Send private message Send e-mail
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Wed Apr 12, 2006 7:59 am Reply with quote

"#exec cgi" is not an HTML command, it is SSI
I don't believe PHP supports it, you may want check out these pages
http://www.linuxquestions.org/questions/showthread.php?postid=50897
http://www.codingforums.com/showthread.php?t=43711

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
southern







PostPosted: Wed Apr 12, 2006 9:09 am Reply with quote

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
http://www.linuxquestions.org/questions/showthread.php?postid=50897
http://www.codingforums.com/showthread.php?t=43711


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. Smile Thanks, too, Guardian and montego.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.1

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©