Click to See Complete Forum and Search --> : [HELP]How do I get script to launch


CarlingMonstor
08-21-2006, 06:17 PM
Hi,

I have a script working at: http://www.dogpuss.com/cgi-bin/image.cgi

I need this script working within a html code. I've found code that launches the script when you hit the submit button, but I want it to launch automaticly when the html page is loaded.

Someone said it was:
<!--#exec cgi="/cgi-bin/image.cgi" -->

but this has no effect. Any help would be great

Thxs

robertketter
08-21-2006, 09:44 PM
Since almost all web hosts allow php this is how I would solve your problem...
in a blank webpage insert this code...

<html>
<head></head>
<body>
<?php include "http://www.yourwebsite.com/cgi-bin/image.cgi"; ?>
</body>
</html>


save and name this page index.php, remove your existing page named index.htm or index.html. Most websites are setup to default to index.php so you should be good to go.

Robert Ketter, www.RobertKetter.com
:)

CarlingMonstor
08-22-2006, 10:55 AM
Thanks, I knew I'd missed something really simple. Didn't even think of running it as a php instead of a html. Thanks again.