Page 1 of 1

Problem with include path

Posted: Tue Nov 20, 2007 2:47 pm
by msoultan
Hey Everyone,
I am trying to set up PHPBB on my campus server and we are having major difficulties trying to figure out the problem. It seems that there is an include problem so I made a test file. Take a look:

http://www.csulb.edu/~cota/includetest/subfolder/

The php files linked to above are hosted in one location and we have the two PHP servers calling the same files, so I know that it isn't a permission issue. Is this a php issue or an apache issue? Or are the two not communicating correctly?

I saw this in the php documenation:

Code: Select all

'PATH_TRANSLATED'

    Filesystem- (not document root-) based path to the current script, after the server has done any virtual-to-real mapping.

        Note: As of PHP 4.3.2, PATH_TRANSLATED is no longer set implicitly under the Apache 2 SAPI in contrast to the situation in Apache 1, where it's set to the same value as the SCRIPT_FILENAME server variable when it's not populated by Apache. This change was made to comply with the CGI specification that PATH_TRANSLATED should only exist if PATH_INFO is defined.

        Apache 2 users may use AcceptPathInfo = On inside httpd.conf to define PATH_INFO.
Could that be the problem? Any suggestions would be much appreciated!!

Thanks!
Mike

Posted: Tue Nov 20, 2007 3:19 pm
by msoultan
Also, I just wanted to add that changing ../ to the absolute path works, so I know it's not a permission issue.

Posted: Tue Nov 20, 2007 5:26 pm
by msoultan
Ok.. got some more information. I posted the same file in a subdirectory (instead of tilde account) and it works:

http://skua.csulb.edu/divisions/student ... /index.php

This is the one from above:

http://www.csulb.edu/~cota/includetest/subfolder/

Any ideas what would cause this? Is it an apache problem or php problem?

Thanks!
Mike