PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
southern
Client


Joined: Jan 29, 2004
Posts: 529
Location: Texas

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

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 Visit poster's website
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4553
Location: Poland

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

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 Visit poster's website
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2744

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

"#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!
View user's profile Send private message Visit poster's website
southern
Client


Joined: Jan 29, 2004
Posts: 529
Location: Texas

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

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
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. Smile Thanks, too, Guardian and montego.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum