Re: require() in other directories?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I get the Failed to open stream, no such file in directory

If you were in one of these folders:
/fr/
/eng/
And your classfile was namned classes.php and in the directory:
/classes/
And you wanted to include the classfile, how would you write it?

I would assume: require("/classes/classes.php");

But that doesn't work.

Help :)



"Pluance" <loveplu@xxxxxxxxx> skrev i meddelandet
news:bb8d5e780411180023457f9e54@xxxxxxxxxxxxxxxxx
> What error happen?
>
>
> On Thu, 18 Nov 2004 09:15:22 +0100, Peter Lauri <peter@xxxxxxxx> wrote:
> > Best groupmember,
> >
> > I have an webapplication that uses different languages and therefor I
have
> > set up different directorys for each language. All languages use the
same
> > classes.
> >
> > The problem I have is when I want to require() the classfile I can not
> > require a file that is not in the same directory as my .php file. I have
> > tried the following:
> >
> > require("../classes.php");
> > require("http://www.mydomain.com/classes.php";);
> > and more.
> >
> > All gives me error messages, why?
> >
> > Anyone that could help me?
> >
> > - Best Of Times
> > /Peter
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux