El Nino
09-10-2001, 03:53 PM
I want to use the text counter from http://www.worldwidemart.com/scripts/textcounter.shtml on my page. It shows an example of how to execute this with an SSI tag, but how can I do this using PHP? I tried include(thefile) and require(thefile) and they both just display the source code of the counter. THanks
SteveP
09-10-2001, 03:55 PM
I don't believe you can because you need an shtml extension. However I've seen php counters that do the same thing. Check out http://www.php.net/projects.php
Change your main page to a .php extension and somewhere in the coding put this little php code.
<?
include('php filename')
?>
Probably more advanced PHP people here can help you.
The Prohacker
09-10-2001, 06:00 PM
<?
passthru("perl /absolutepath/script.pl");
?>
Put that code into a .php file.
Set the path and script info, and that should work......
El Nino
09-10-2001, 07:02 PM
Originally posted by The Prohacker
<?
passthru("perl /absolutepath/script.pl");
?>
Put that code into a .php file.
Set the path and script info, and that should work......
Yup, that worked! Thanks!