ini_set('include_path','。:..');看到? [英] where can ini_set('include_path','.:..'); see?

查看:60
本文介绍了ini_set('include_path','。:..');看到?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在接管一个现有的应用程序并且无法理解他们的

引用。


他们在目录结构中封装了Pear包,如:

/ site

/site/html/Pear.php

/site/html/Sigma.php

/ site /html/Common.php

/site/html/Quickform.php

/ site / html / Quickform /

/ site / Mail / mail.php

/pages/page1.php


在/site/html/Quickform.php的顶部,他们放了:

的ini_set('include_path中 '', '':.. '');

...

require_once( '' HTML /的common.php '' );


它试图找到''HTML / Common.php',它在同一个

目录中但从目录中引用时抛出错误在它之上。


我已经尝试了apache conf文件中的每个配置并更改了

代码本身。


所以,可以ini_set(''include_path'',''。:..'');看到上面的目录了吗?如果没有,

如何更改它以查看上面的目录?


任何想法都非常感谢!

I am taking over an existing app and having trouble understanding their
references.

They have encapsulated Pear packages in the directory structure like:
/site
/site/html/Pear.php
/site/html/Sigma.php
/site/html/Common.php
/site/html/Quickform.php
/site/html/Quickform/
/site/Mail/mail.php
/pages/page1.php

At the top of /site/html/Quickform.php they put:
ini_set(''include_path'',''.:..'');
...
require_once(''HTML/Common.php'');

And it throws an error trying to find ''HTML/Common.php'' which is in the same
directory but referenced from the directory above it.

I have tried every configuration in the apache conf file and changing the
code itself.

So, can ini_set(''include_path'',''.:..''); see the directory above it? If not,
how can I change it to see the directory above it?

Any ideas are MUCH appreciated!

推荐答案



" Paul" < lo*@invalid.com写在留言中

新闻:8h ****************** @ bignews3.bellsouth.net ..

|我正在接管一个现有的应用程序并且无法理解他们的

|参考。

|

|他们在目录结构中封装了Pear包,如:

| / site

| /site/html/Pear.php

| /site/html/Sigma.php

| /site/html/Common.php

| /site/html/Quickform.php

| / site / html / Quickform /

| /site/Mail/mail.php

| /pages/page1.php

|

|在/site/html/Quickform.php的顶部,他们放了:

| ini_set(''include_path'',''。:..'');

| ......

| require_once('''HTML / Common.php'');


dude paul,我本来可以发誓我为你解决了这个问题!只需编辑php

ini文件。你需要创建一个名为''relative.path.php''的文件。并把它放在你的php包含路径中的
(你很快就会使用ini_set来快速搞砸

)。该文件中包含以下代码:


< ;?

"Paul" <lo*@invalid.comwrote in message
news:8h******************@bignews3.bellsouth.net.. .
|I am taking over an existing app and having trouble understanding their
| references.
|
| They have encapsulated Pear packages in the directory structure like:
| /site
| /site/html/Pear.php
| /site/html/Sigma.php
| /site/html/Common.php
| /site/html/Quickform.php
| /site/html/Quickform/
| /site/Mail/mail.php
| /pages/page1.php
|
| At the top of /site/html/Quickform.php they put:
| ini_set(''include_path'',''.:..'');
| ...
| require_once(''HTML/Common.php'');

dude paul, i could have sworn i gave you a fix for this! just edit the php
ini file. you need to create a file called ''relative.path.php''. and put it
in your php include path (that you are soon to quick fucking around with
using ini_set). that file has this code in it:

<?


parsedUri = dirname(
parsedUri = dirname(


_SERVER [''PHP_SELF'']);
_SERVER[''PHP_SELF'']);


这篇关于ini_set('include_path','。:..');看到?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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