XAMPPのPEARにHTML_QuickFormがインストールされていないと、ブラウザに以下のようなエラーが表示される。
Warning: require_once(HTML/QuickForm.php): failed to open stream: No such file or directory in C:\xampp ...
Fatal error: require_once(): Failed opening required 'HTML/QuickForm.php' (include_path='C:\xampp\php\PEAR') in C:\xampp ...
HTML_QuickFormのインストール方法
PEARのインストール状況を確認
- コントロールパネルからShellを起動
- pear list と入力して[Enter] → インストール状況を確認する → HTML_QuickForm がないはず
インストールコマンド
- pear install HTML_QuickForm と入力して[Enter]
- 下記のように表示されればインストール完了
txt
WARNING: "pear/HTML_QuickForm" is deprecated in favor of "pear/HTML_QuickForm2"
WARNING: "pear/HTML_Common" is deprecated in favor of "pear/HTML_Common2"
downloading HTML_QuickForm-3.2.14.tgz ...
Starting to download HTML_QuickForm-3.2.14.tgz (103,993 bytes)
........................done: 103,993 bytes
downloading HTML_Common-1.2.5.tgz ...
Starting to download HTML_Common-1.2.5.tgz (4,617 bytes)
...done: 4,617 bytes
install ok: channel://pear.php.net/HTML_Common-1.2.5
install ok: channel://pear.php.net/HTML_QuickForm-3.2.14