- 论坛徽章:
- 0
|
原帖由 showstar 于 2006-3-6 14:57 发表
就是说perl页面可以通过apache在windows下实现浏览器访问对吗?
YES!
Please read httpd.conf under <APACHE_HOMR_DIR>/conf/
You will find the following line:
ScriptAlais /cgi-bin/ "C:\<PATH TO YOUR CGI DIRECTORY>"
<Directrory "C:\<PATH TO YOUR CGI DIRECTORY>">
.....
</Directory>
Put your perl program to the "C:\<PATH TO YOUR CGI DIRECTORY>".
In your perl script must put the following code in the very beginnig of.
#!C:\path\to\your\perl.exe
For web browsing must use
print "content-type: text/html\n\n" or
print "content-type: text/plain\n\n"
to output http header first.
See als more about perl - CGI
Best, ulmer |
|