pear 中的类能不能独立使用<?
require_once("HTML\QuickForm.php");//这里的路径是怎样的
//建立一个表单对象
$form = new HTML_QuickForm('frmTest', 'post');$form->addElement('header', 'header', '请登录');
$form->addElement('text', 'name', '用户名:');
$form->addElement('password', 'password', '密码:');
$form->addElement('submit', 'submit', '提交');
// 输出到浏览器
$form->display();
?>
require_once("HTML\QuickForm.php");//这里的路径是怎样的
//建立一个表单对象
$form = new HTML_QuickForm('frmTest', 'post');$form->addElement('header', 'header', '请登录');
$form->addElement('text', 'name', '用户名:');
$form->addElement('password', 'password', '密码:');
$form->addElement('submit', 'submit', '提交');
// 输出到浏览器
$form->display();
?>
至于路径,是因为pear安装的时候,将安装路径加到include_path里面了,所以上面的路径是基于pear的安装目录而言的.