JwCGI

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
第5行: 第5行:
 
  cd 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
 
  ./configure --with-html=/var/www/html --with-cgibin=/var/www/cgi-bin --with-mysql=/usr/lib/mysql  --enable-demos --enable-mysqldemo
  make
+
  make createdb // create the database
  make install
+
  make dropdb // remove the database
 
  http://localhost/html/jwcgi/  
 
  http://localhost/html/jwcgi/  
 
+
[[Image:jwcgi-personnel.png|right|thumb|Personnel Database]]
 
  mysqladmin -u root -p create personnel
 
  mysqladmin -u root -p create personnel
 
  mysql -u root -p personnel < jwcgi/personnel.sql
 
  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==
 
==Links==
 
*http://johnwiggins.net/jwcgi/
 
*http://johnwiggins.net/jwcgi/

2007年2月8日 (四) 21:58的版本

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.
分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱