include problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bigal

    include problem

    Hi there,
    Get the following errors when trying to include PEAR DB framework using
    PHP 5.0.4 on Windows 2000 with Apache 2.

    Warning: main(PEAR-1.3.3/DB/DB.php) [function.main]: failed to open
    stream: No such file or directory in E:\Program Files\Apache
    Group\Apache2\h tdocs\servus\in cludes\include. php on line 19

    Fatal error: main() [function.requir e]: Failed opening required
    'PEAR-1.3.3/DB/DB.php' (include_path=' .\includes;.\') in E:\Program
    Files\Apache Group\Apache2\h tdocs\servus\in cludes\include. php on line 19

    The include_path config variable looks like this:
    include_path = ".\includes ;.\"

    PHP is installed in
    e:\php-5.0.4
    and the PEAR Class defs are in
    e:\php-5.0.4\includes\ PEAR-1.3.3\DB\DB.php

    The includes that fail are:
    include_once("P EAR-1.3.3/DB/DB.php");

    These worked with 4.4.0, but fail with 5.0.4 ...

    can anybody tell me what's going wrong here please? I can't see the wood
    for the trees! :)

    Thanks

    Alan Stone
  • Colin McKinnon

    #2
    Re: include problem

    bigal wrote:
    [color=blue]
    >
    > Warning: main(PEAR-1.3.3/DB/DB.php) [function.main]: failed to open
    > stream: No such file or directory in E:\Program Files\Apache
    > Group\Apache2\h tdocs\servus\in cludes\include. php on line 19
    >[/color]
    <snip>[color=blue]
    >
    > The include_path config variable looks like this:
    > include_path = ".\includes ;.\"
    >
    > PHP is installed in
    > e:\php-5.0.4
    > and the PEAR Class defs are in
    > e:\php-5.0.4\includes\ PEAR-1.3.3\DB\DB.php
    >[/color]

    So e:\php-5.0.4 is not on the include path and you want to include files it
    contains. Need I say more?

    C.

    Comment

    Working...