例子1:创建和使用你自己的JAVA类 创建你自己的JAVA类非常容易。新建一个phptest.java文件,将它放置在你的java.class.path目录下,文件内容如下: public class phptest{ /** * A sample of a class that can work with PHP * NB: The whole class must be public to work, * and of course the methods you wish to call * directly. * * Also note that from PHP the main method * ...[ 查看全文 ]
function cook_cooloff(){ global $PHP_SELF,$aid,$pgno; setcookie("OPEN_LIST",0,time()+ 31536000); Header("Location:$PHP_SELF?aid=$aid&pgno=$pgno"); exit; } //=============================================================== function cook_coolon(){ ...[ 查看全文 ]
//此为bbs.sql CREATE TABLE bbs_area ( id int(10) unsigned DEFAULT '0' NOT NULL auto_increment, master varchar(150) NOT NULL, banner varchar(150) NOT NULL, body text NOT NULL, email varchar(50), login varchar(20), passwd varchar(20), &nb...[ 查看全文 ]