include_path相关问题 [英] include_path related issue

查看:83
本文介绍了include_path相关问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怀疑以下问题是托管服务提供商特定的,但他们

到目前为止还没有能够帮助我。也许我正在做一些事情

错了,有人能够发现问题......这就好了。


我账户根目录的实际路径与托管服务提供商

(HP)是:

/usr/local/psa/home/vhosts/mydomain.com/

webroot是根目录的子目录:

/usr/local/psa/home/vhosts/mydomain.com/httpdocs。

包含文件进入:

/usr/local/psa/home/vhosts/mydomain.com/includes。
httpdocs中的
..htaccess包含:

php_value include_path"。| .. / include


我可以在我的帐户的控制面板中指定其他子域名。

他们会自动进入

/ usr /local/psa/home/vhosts/mydomain.com/subdomains/

其中一个:

/usr/local/psa/home/vhosts/mydomain.com/ subdomains / customer

也有子目录''httpdocs''和''包含''

要浏览httpdocs / index.php这个子域名,URL读取:
http://customer.mydomain.com [/index.php]

httpdocs中的.htaccess文件类似于我主域中的文件。

PHP正确识别include_path设置,但无法打开任何
$ b包含目录中的$ b文件(例如):

致命错误:main()[function.require]:需要打开失败

''dbconn.inc''(

/usr/local/psa/home/vhosts/mydomain.com/subdomains/customer/httpdocs/counter.php
中的include_path =''。:../ includes'')第4行



主要和

子域的权限设置相同,r-x到所有涉及的子目录的其他部分,'r--''用于文件。


任何妨碍PHP打开的想法包括我的

子域名的文件?如果那个

对于这个问题有任何不同,那么Open_basedir设置为我的根目录btw。


希望我的消息足够可读。提前致谢!

Sh。

I suspect the following problem IS hosting provider specific, but they
haven''t been able to help me out so far. Perhaps I am doing something
wrong and someone is able to spot the issue... Here goes.

The actual path of the root dir of my account with hosting provider
(H.P.) is:
/usr/local/psa/home/vhosts/mydomain.com/
The webroot is a subdir of the root:
/usr/local/psa/home/vhosts/mydomain.com/httpdocs.
Include files go in:
/usr/local/psa/home/vhosts/mydomain.com/includes.
..htaccess in httpdocs contains:
php_value include_path ".|../includes"

I can specify additional subdomains in the control panel of my account.
They automatically go in
/usr/local/psa/home/vhosts/mydomain.com/subdomains/
One of these:
/usr/local/psa/home/vhosts/mydomain.com/subdomains/customer
which also has the subdirs ''httpdocs'' and ''includes''
To browse httpdocs/index.php the subdomain the URL reads:
http://customer.mydomain.com[/index.php]
The .htaccess file in httpdocs is similar to the one in my master domain.
PHP recognizes the include_path setting properly, yet fails to open ANY
file in the includes directory (e.g.):
Fatal error: main() [function.require]: Failed opening required
''dbconn.inc'' (include_path=''.:../includes'') in
/usr/local/psa/home/vhosts/mydomain.com/subdomains/customer/httpdocs/counter.php
on line 4

Permissions are set along the same lines for both master and
sub-domains, ''r-x'' to others for all subdirs involved, ''r--'' for the files.

Any ideas what prevents PHP from opening include files for my
subdomains? Open_basedir is set to my root dir btw by H.P., if that
makes any difference for this issue.

Hope my message is readable enough. Thanks in advance!
Sh.

推荐答案

Schraalhans Keukenmeester写道:
Schraalhans Keukenmeester wrote:

php_value include_path"。| ../ includes"
php_value include_path ".|../includes"


(include_path =''。:../ includes'')
(include_path=''.:../includes'')



如果是一个unix盒子,冒号似乎是正确的(窗口会有一个分号)。

我从来没有见过管道用于此,但这可能是我的缺点
$ b操作系统知识和环境变量$ b。


-

Rik Wasmus

If a unix box, the colon seems correct (windows would have a semicolon).
I''ve never seen a pipe use for this though, but that might be my lack
of OS knowledge and environmental variables.

--
Rik Wasmus


Rik写道:
Rik wrote:

Schraalhans Keukenmeester写道:
Schraalhans Keukenmeester wrote:

> php_value include_path"。| ../ includes"
> php_value include_path ".|../includes"



>(include_path =''。:../ includes'')
>(include_path=''.:../includes'')



如果是一个unix框,冒号似乎是正确的(窗口会有一个分号)。

我从来没有看过管道用于此,但这可能是我的缺乏

操作系统知识和环境变量。


If a unix box, the colon seems correct (windows would have a semicolon).
I''ve never seen a pipe use for this though, but that might be my lack
of OS knowledge and environmental variables.



管道是一个错字,唉。如果只是这么容易,Rik.Thanks你的

敏锐的眼睛虽然!我的提供者也没有消息。 WEIRD!


Sh。

The pipe was a typo, alas. If only it were so easy, Rik.Thanks for your
keen eye though! No news from my provider either. WEIRD!

Sh.


Schraalhans Keukenmeester写道:
Schraalhans Keukenmeester wrote:

Rik写道:
Rik wrote:

> Schraalhans Keukenmeester写道:
>Schraalhans Keukenmeester wrote:

>> php_value include_path"。| ../ includes"
>> php_value include_path ".|../includes"


>>(include_path =''。:../ includes'')
>>(include_path=''.:../includes'')


如果是一个unix框,冒号似乎是正确的(窗口会有一个分号)。
我从未见过管道用于此,但这可能是我缺乏操作系统知识和环境变量。

If a unix box, the colon seems correct (windows would have a semicolon).
I''ve never seen a pipe use for this though, but that might be my lack
of OS knowledge and environmental variables.



管道是一个错字,唉。如果只是这么容易,Rik。

The pipe was a typo, alas. If only it were so easy, Rik.



希望它是......

Wish it was...


感谢您的支持

热衷虽然眼睛!我的提供者也没有消息。奇怪的!
Thanks for your
keen eye though! No news from my provider either. WEIRD!



如果你试图专门包含它会怎样?这有用吗?

会给出更明确的错误吗?

-

Rik Wasmus


估计可以再次行走的日期:01-05-2007。

少于一周,欢呼!

What happens if you try to include it specifically? Does that work or
does that give a more clear error?
--
Rik Wasmus

Estimated date being able to walk again: 01-05-2007.
Less then a week, hurray!


这篇关于include_path相关问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆