Hi
I've spent about 2 days trying to run a cgi script from an html page with no luck. I've downloaded several scripts and anything that doesn't need me to call it from a page works fine so I guess I'm calling it wrong. I've tried all of the forms I can find, my html reads as:
<html>
<head>
</head>
<body>
<!--#exec cgi="/home/lincsman/public_html/cgi-bin/clock.cgi"-->
<p>
<!--#include virtual="/cgi-bin/clock.cgi" -->
<p>
<!--#include virtual="/home/lincsman/public_html/cgi-bin/clock.cgi" -->
<p>
<!--#exec cgi="/cgi-bin/clock.cgi"-->
<p>
<!--#exec cgi="/home/lincsman/public_html/cgi-bin/clock.cgi"-->
<p>
<!--#exec cgi="http://www.artworld.x10hosting.com/cgi-bin/clock.cgi"-->
<p>
<!--#exec cgi="/home/lincsman/public_html/cgi-bin/clock.cgi"-->
</body>
</html>
but http://www.artworld.x10hosting.com/clock.html produces a blank page.
If I call it from the browser bar it work:
http://www.artworld.x10hosting.com/cgi-bin/clock.cgi
or another:
http://www.artworld.x10hosting.com/cgi-bin/textclock.cgi
A script I installed to check the details confirmed:
Path and URL information:
Your path to Perl is correct
Your server is running Perl version: 5.008008
Your domain name is: www.artworld.x10hosting.com
The complete system PATH to this script is: /home/lincsman/public_html/cgi-bin/test.cgi
The URL of this script is: http://www.artworld.x10hosting.com/cgi-bin/test.cgi
Please help if you can!
Many thanks in advance.
I've spent about 2 days trying to run a cgi script from an html page with no luck. I've downloaded several scripts and anything that doesn't need me to call it from a page works fine so I guess I'm calling it wrong. I've tried all of the forms I can find, my html reads as:
<html>
<head>
</head>
<body>
<!--#exec cgi="/home/lincsman/public_html/cgi-bin/clock.cgi"-->
<p>
<!--#include virtual="/cgi-bin/clock.cgi" -->
<p>
<!--#include virtual="/home/lincsman/public_html/cgi-bin/clock.cgi" -->
<p>
<!--#exec cgi="/cgi-bin/clock.cgi"-->
<p>
<!--#exec cgi="/home/lincsman/public_html/cgi-bin/clock.cgi"-->
<p>
<!--#exec cgi="http://www.artworld.x10hosting.com/cgi-bin/clock.cgi"-->
<p>
<!--#exec cgi="/home/lincsman/public_html/cgi-bin/clock.cgi"-->
</body>
</html>
but http://www.artworld.x10hosting.com/clock.html produces a blank page.
If I call it from the browser bar it work:
http://www.artworld.x10hosting.com/cgi-bin/clock.cgi
or another:
http://www.artworld.x10hosting.com/cgi-bin/textclock.cgi
A script I installed to check the details confirmed:
Path and URL information:
Your path to Perl is correct
Your server is running Perl version: 5.008008
Your domain name is: www.artworld.x10hosting.com
The complete system PATH to this script is: /home/lincsman/public_html/cgi-bin/test.cgi
The URL of this script is: http://www.artworld.x10hosting.com/cgi-bin/test.cgi
Please help if you can!
Many thanks in advance.