HELP!!! I love this wamp thing, but I'm having a devil of a time trying to get a require_once directive to work properly. The following line in my /ratQOI/index.php page...
<?php require_once '/ratQOI/lib/ratqoi.php' ?>
causes the following error:
Warning: main(/ratQOI/lib/ratqoi.php) [function.main]: failed to open stream: No such file or directory in c:\wamp\www\ratQOI\index.php on line 1
Fatal error: main() [function.require]: Failed opening required '/ratQOI/lib/ratqoi.php' (include_path='.;C:\php5\pear') in c:\wamp\www\ratQOI\index.php on line 1
And the file DEFINITELY exists in the appropriate directory. My document root is c:\wamp\www\ obviously. However, if I change the directive to
<?php require_once 'lib/ratqoi.php' ?>
relative to the index.asp page itself instead of to the web root with the leading slash, then it works fine!!!!!
I'm a newbie, so I beg your patience with this what must be a silly question, but please tell me what I'm doing wrong. Here's my version info...
- Wamp 1.2
- PHP 5.0.1
- Apache 2?