I am trying to access a fairly simple login page I have copied (it is an example from the book "The PHP Anthology" from Sitepoint. com).
Here is the beginning of that page:
Code: Select all
<?php
error_reporting(E_ALL);
require_once 'HTML/QuickForm.php';
http://localhost/projname/login.php
I get this error:
Warning: require_once(HTML/QuickForm.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/rentit/login.php on line 3
The words "function.require-once" are a hyper link to a page that reads:
Not Found
The requested URL /rentit/function.require-once was not found on this server.
Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3 Server at localhost Port 80
In the Eclipse project that contains the Login.php page, I have added an include path that points to "/usr/share/php/PEAR".
I have verified that /usr/share/php/PEAR/HTML/QuickForm.php exists so, I don't understand why the error is occurring.
(Also, I have verified that simple HTML pages, and PHP test pages work on my localhost so, php and Apache2 seem to be working nicely)
Thanks in advance for any advice you can give.