Forum Moderators: mack
i am newbie in web development and so.....
i finded somewhere a script for counting number of dowloadns and so it said you should put this on your html to show number of downloads
<!--#include virtual="/cgi-bin/ShotGunDisplay.cgi?ammo=yourFile.zip" -->
by running the script it works but this wont work....
i mean if i type
www.mydomainname.com/cgi-bin/ShotGunDisplay.cgi?ammo=yourFile.zip" it works but not in that html....
what should i do...also just renaming a html to shtml is enough for making it work?
Which is what you are trying to do. Basically, the page is requested, and that little line of code is executed prior to the page being served.
Finally the page is served to the visitor with the output from the executed program included in the page.
You will generally need to have your file extension as .shtml for this to work.
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Your File</title>
</head>
<body>
<a href="/weblog/cgi-bin/ShotGun.cgi?ammo=setup34.exe">Your File
<!--#include virtual="/weblog/cgi-bin/ShotGunDisplay.cgi?ammo=setup34.exe" --></a>
</body>
</html>
is anything wrong?
as i said typing /weblog/cgi-bin/ShotGunDisplay.cgi?ammo=setup34.exe works perfect but.....html is not working
If it is, then the server is not executing the statement.
The .shtml file extension basically tells the server to look for statements like the include virtual one etc. and to execute them.
Generally, if the page is just a .html or .htm file extension, the server will NOT execute those statements.