JwCGI

来自开放百科 - 灰狐
2010年8月22日 (日) 08:27Allen (讨论 | 贡献)的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到: 导航, 搜索

jwCGI is a C++ library for creating CGI (Common Gateway Interface) programs. The library comes with several example programs to help you get acquainted with its usage. If you are familiar with C/C++ it will be quick to learn. It also incooperates an xhtml class for displaying web content. If you need some kind of interpreted programming language (i.e. PHP or Perl) please see the links on the left of this page. jwCGI is free software subject to the terms of the GPL License.

目录

Install

tar -xvzf jwcgi-<version>
cd jwcgi-<version>
./configure --with-html=/var/www/html --with-cgibin=/var/www/cgi-bin --with-mysql=/usr/lib/mysql  --enable-demos --enable-mysqldemo
make createdb // create the database
make dropdb // remove the database
http://localhost/html/jwcgi/ 
Personnel Database
mysqladmin -u root -p create personnel
mysql -u root -p personnel < jwcgi/personnel.sql
mysql>grant all privileges on personnel.* to personneluser@localhost identified by 'secret';
mysql>flush privileges;
http://localhost/cgi-bin/jwcgi/person.cgi // demo中只有一条记录。

Code Generator

MySQL code generator http://johnwiggins.net/jwcgi/docs/html/mySQL-codegen.html

Links

Use JwCGI

  • Qmailctl.cgi CGI program that controls the qmail email server.
  • FireLance CGI to control an iptables firewall.
分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱