hello forum,
i’ve run into a problem that has me stumped.
first off, i am trying to run a php script on the unix-based command line interface. Easy enough, the script is as follows:
<?php
require ‘HTML/QuickForm.php’; //from PEAR::HTML_QuickForm
echo ‘hello world’;
?>
i type the following at the prompt to see if this script works on the command line:
root# /usr/local/php5/bin/php /Users/cadmiumgreen/Sites/index.php
and the results are as follows…
PHP Warning: main(HTML/QuickForm.php): failed to open stream: No such file or directory in /Users/cadmiumgreen/Sites/index.php on line 3
PHP Fatal error: main(): Failed opening required ‘HTML/QuickForm.php’ (include_path=’.:/usr/local/php5/lib/php:/usr/local/php5/lib/php/HTML:php/includes:/usr/lib/php’) in /Users/cadmiumgreen/Sites/index.php on line 3
But it displays perfectly without errors on the browser.
The path seems to be very correct.
Anyone experience the same problem?
-cadmiumgreen