i am just trying to get Pear working, that's all. The following script will fail:
[PHP]
$PEAR_PATH='/usr/share/pear/';
ini_set('include_path', ini_get('include_path').':'.$PEAR_PATH);
// Include the QuickForm class
require_once ("QuickForm.php");
// Instantiate the QuickForm class
$form = new HTML_QuickForm('quickForm1', 'POST');
// Add a text input field called firstName,
// labelled "Enter your name"
$form->addElement('text', 'firstName', 'Enter your name');
// Add a submit button called submit with "Send" as the text
// for the button
$form->addElement('submit', 'submit', 'Send');
// If the form is submitted...
if (isset($_POST['submit'])) {
// Display the submitted value "firstName"
echo 'Hello ' . $form->getSubmitValue('firstName');
} else {
// If not submitted, display the form
$form->display();
}
?>[/PHP]
The errors are:
CODE
Warning: main(QuickForm.php): failed to open stream: No such file or directory in /home/virtual/site5/fst/var/www/html/test.php on line 7
Fatal error: main(): Failed opening required 'QuickForm.php' (include_path='.:/php/includes:/usr/share/php:/usr/share/pear/') in /home/virtual/site5/fst/var/www/html/test.php on line 7
And of course, I tried including the path to Pear in php.ini without success:
CODE
include_path = ".:/php/includes:/usr/share/php:/usr/share/pear"
I have done everything short of creating that script in "/etc/virtualhost... etc" because my account doesn't allow me to create such directory within the virtualhost...
Thanks again.