Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running perl script

Status
Not open for further replies.

jimberger

Programmer
Jul 5, 2001
222
GB
Hi all,

I was wondering if there is a directive in apache that allows me to do the following:

I've got a directory


Under location - there is a html page that is shown everytime a person visits this url. However, I want to tell apache to display this html page as normal but also run a perl script in the background - the script will basically just record the date and time of access so i can create some kind of access log for this page. Has apache the ability to do this?

Thanks for your help

Jim
 
if you have SSI (server side includes) and ExecCGI enabled for that directory you could use the following line in your html file, although you would probably have to rename it to .shtml
<!--#exec cgi=&quot;your script&quot; -->

//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top