Forum Moderators: coopster

Message Too Old, No Replies

Virtual Include Path issue

         

onoff

11:28 am on Mar 17, 2006 (gmt 0)

10+ Year Member



Hi,

I have a problem including a file where there should be no problem whatsoever:

I have the following structure

/home/blast/test/
-> Mapped to virtual directory

So when i type in [test.example.ie...] i get /home/blast/test/

Now in the /home/blast/test/ directory i have a file called index.php and process_login.php

I am calling process_login.php from index.php

The problem is process_login.php needs to include a file in home/blast/test/includes/

I have entered the following code in process_login.php

include './includes/connect.php';
require_once('./includes/PHPBB_login.php');

It gives me the following error:
Warning: main(./includes/PHPBB_login.php) [function.main]: failed to open stream: No such file or directory in /home/blast/test/process_login.php on line 3

Fatal error: main() [function.require]: Failed opening required './includes/PHPBB_login.php' (include_path='.:php/includes:/usr/local/lib/php:./includes') in /home/blast/test/process_login.php on line 3

The file is DEFINITELY in the includes folder and it has no problem finding the connect.php file

I have tried the following

a. require_once ('./includes/PHPBB_login.php');
b. require_once ('home/blast/test/includes/PHPBB_login.php');
c. require_once ('/includes/PHPBB_login.php');
d. include ('./includes/PHPBB_login.php');
e. include ('home/blast/includes/PHPBB_login.php');

Any help GREATLY appreciated!

[edited by: jatar_k at 2:57 pm (utc) on Mar. 17, 2006]
[edit reason] generalized url [/edit]

Mr_Fern

11:39 am on Mar 17, 2006 (gmt 0)

10+ Year Member



have you tried either
'/home/blast/test/includes/PHPBB_login.php' or
'includes/PHPBB_login.php'?