tags:

views:

15

answers:

1

Im running xampp and i see the Pear folders in the php subdirectory. I have the html_quickform folder but i dont know where to place it?

Do i place it in the first Pear folders or the next Pear folders? I created a HTML folder on the first Pear folder to place it in but im getting this error:

**index.php**
require_once('HTML/QuickForm/QuickForm.php');

.

Warning: require_once(HTML/Common.php) [function.require-once]: failed to open stream: No such file or directory in C:\Users\Jonny\Desktop\projects\xampp\php\PEAR\HTML\QuickForm\QuickForm.php on line 33

Fatal error: require_once() [function.require]: Failed opening required 'HTML/Common.php' (include_path='C:\Users\Jonny\Desktop\projects\xampp\php\PEAR') in C:\Users\Jonny\Desktop\projects\xampp\php\PEAR\HTML\QuickForm\QuickForm.php on line 33

However the warning says i need html/common.php but there's no such thing in the Pear installation. THe only place i see common.php is in the second Pear folder but it is in the root not a HTML folder.

A: 

Judging from this question, you need to follow the instructions to install PEAR. And then you'll have a pear.bat which you need to run from the prompt.

In a nutshell:

c:\...\pear\go-pear.bat

It's better to use the installer to set it up:

pear(.bat) install html_quickform

(.bat if it's windows.)

It'll create the following structure:

C:\...\pear\HTML\QuickForm.php
C:\...\pear\HTML\QuickForm\...
etc. pp.

Doublecheck in your php.ini that C:\...\pear is in your include_path.

Then:

<?php
require_once 'HTML/QuickForm.php';
Till
there is no pear.bat in xampp
Jonny
extended my answer
Till