Delphi3做的CGI怎么在本地(难道不行)测试(100分)

  • 主题发起人 主题发起人 zheng
  • 开始时间 开始时间
Z

zheng

Unregistered / Unconfirmed
GUEST, unregistred user!
Delphi3做的CGI怎么在本地(难道不行)测试,是不是要装
Microsoft Personal Web Server(用Frontpage Personal Web Server
代替行吗?),
如果是的话要怎样设置?
 
this hint copied from delphi's help:
To debug a Web server application using Personal Web Server, set your application抯 run parameters as follows:

Host Application: c:/Program Files/websvc/system/inetsw95.exe

Run Parameters: -w3svc

This starts the Personal Web Server and allows you to debug your ISAPI
DLL.

Note: Your directory path for inetsw95.exe may differ from the example.

It is more difficult to debug CGI and Win-CGI applications, because the application itself must be launched by the Web server.

......

Another approach you can take with both CGI and Win-CGI applications is first to create and debug your application as an ISAPI or NSAPI application. Once your ISAPI or NSAPI application is working smoothly, convert it to a CGI or Win-CGI application. To convert your application, use the following steps:
1. Right-click the Web module and choose Add To Repository.
2. In the Add To Repository dialog, give your Web module a title, text description, repository page (probably Data Modules), author name, and icon.

8. Choose OK to save your web module as a template.
4. From the main menu, choose File|New and select Web Server Application. In the New Web Server Application dialog, choose CGI or Win-CGI, as appropriate.
5. Delete the automatically generated Web Module.
6. From the main menu, choose File | New and select the template you saved in step 3. This will be on the page you specified in step 2.

....

there's no help about how to debug under frontpage server. just docs about
how to debug under a NetScape server.
details pls read delphi's help
 
当然要装PWS之类的web server了!! 否则...你是怎么调试的?

建好web server(比如PWS)后,在WEB的跟目录下建一个可执行的目录,一般
是cgi-bin,把你的CGI程序放在这个目录下,然后在浏览器里面键入:
http://localhost/cgi-bin/xxx.exe即可.

 
把CGI放在一个可执行目录就可以了。
你必须把放CGI的那个目录设置为可执行。
Frontpage personal web server 行不行,没试过。
 
cAKK,比我快多了!
 
cakk是运行的方法, 不是调试(不能跟踪).
 
呵呵, 是测试, 而不是调试:-) eyes审错题了.
不过, 建议你要用nt的iis来测试, 除非你的server就是pws或frontpage, 因为nt
的权限设置原因, 很多pws通过的在iis上不能通过:-(
 
我是直接用FrontPage测试的,
只要在C:/FrontPage Webs/Content/你的网站/ 里浏览你的网页
在C:/FrontPage Webs/Content/cgi-bin/ 里放你的程序
 
Microsoft Personal Web Server和Frontpage Personal Web Server都可以
其实测试也包含调试。你在调试CGI时应注意一个问题,当CGI运用后,进程还在
内存,只能退出PWS,再启动PWS,具体方法是运行PWS/STOP----yysun说的,我
试用只能用此方法才能彻底清除进程,以前我一直是重启WIN98真烦。
 
>>你在调试CGI时应注意一个问题
^^^^是ISAPI吧? CGI无此问题.
 
呵呵, 如果cgi运行错误, 不能自动退出内存, 也是一样:-(
不过, pws/stop不能解决所有的问题, 有时还是要alt-ctrl-del然后关闭inetinfo
才可以:-(
 
"如果cgi运行错误",只要ctrl+alt+del,然后结束该进程就可以了.不用重新启动.
 
在我竹叶的工具兰中有一个工具Intrabob挺好用的.
http://lodgue.yeah.net
 
请给执行权限
 
多人接受答案了。
 
怎样才能取得我自己编的程序中的图标等的资源编号?
 
后退
顶部