Keith,
>^^^this directive is not set correctly - it looks like the
>default values to me. Maybe you need to check the
>include_path value for the previous version of PHP.
My include_path value on my php.ini instance (which works) is:
include_path = ".:/usr/local/php4/lib"
That's almost identical to my PHP 5 setting (include_path = ".:/usr/local/php5/lib/php"). I've also tried setting my include_path in my test code using:
ini_set("include_path", "/home/bu/jsantana/htdocs");
The only thing that changes is my error:
Warning: include(../extension.inc) [function.include]: failed to open stream: Permission denied in /home/bu/jsantana/htdocs/php/IncludeExample.php on line 4
Warning: include() [function.include]: Failed opening '../extension.inc' for inclusion (include_path='/home/bu/jsantana/htdocs') in /home/bu/jsantana/htdocs/php/IncludeExample.php on line 4
Note the change of the include_path value.
I have used diff to compare my v4 php.ini and v5 php.ini files. The major difference is that PHP v4 is running in safe_mode whereas PHP v5 is not. However, I have attempted to switch my PHP v5 instance into safe_mode with the same results.
>I compile php myself, and use a copy of the configuration
>file for the previous version. I make backups as well, just
>in case I need them.
Would you mind sharing your configure command? I'd like to compare it with the ones I've tried (I backup my configure lines as well)
Thanks in advance.
Jesse
Jesse Santana
Project Lead - Enterprise Services Group
Information Technology Services
California State University, Long Beach
1250 Bellflower Blvd.
Long Beach, CA 90840
Office: (562)985-8511
Fax: (562)985-8855
Keith Roberts <keith@xxxxxxxxxxxx>
08/10/2007 01:14 PM
|
|
On Fri, 10 Aug 2007, Jesse Santana wrote:
<snip>
> The new server we are setting up is running Solaris 10, Apache 2.2.4 and
> PHP 5.2.3. The same script I mentioned above produces this error:
>
> Warning: include(./../extension.inc) [function.include]: failed to open
> stream: Permission denied in
> /home/bu/jsantana/htdocs/php/IncludeExample.php on line 3
>
> Warning: include() [function.include]: Failed opening './../extension.inc'
> for inclusion (include_path='.:/usr/local/php5/lib/php') in
^^^this directive is not set correctly - it looks like the
default values to me. Maybe you need to check the
include_path value for the previous version of PHP.
> If I define my include path as
> include("/home/bu/jsantana/htdocs/extension.inc");, the script works fine
> with PHP 5. Can anyone explain why under PHP 5 the ./../ does not back up
> one directory from the directory where I call my script from?
include("/home/bu/jsantana/htdocs/extension.inc")
You may need to set that option in your php.ini file, so it
is a standard include path.
I use ../../ all over the place on PHP 5.2.1 - the only
complaints I get from PHP is if I have not set the include
path correctly.
I compile php myself, and use a copy of the configuration
file for the previous version. I make backups as well, just
in case I need them.
You could also use a GUI-based file comparison utility (like
KDiff3) if Solaris has one, to compare both php.ini files
from PHP4 and the new PHP5. This will highlight right away
any differences in those two files.
HTH
Keith
> Thank you,
>
> Jesse
>
> Jesse Santana
> Project Lead - Enterprise Services Group
> Information Technology Services
> California State University, Long Beach
> 1250 Bellflower Blvd.
> Long Beach, CA 90840
> Office: (562)985-8511
> Fax: (562)985-8855
>
------------------------------------------------------------
http://www.karsites.net
http://www.raised-from-the-dead.org.uk
This email address is challenge-response protected with
http://www.tmda.net
------------------------------------------------------------
- Prev by Date: RE: PHP v4 vs. PHP v5 behavior
- Next by Date: RE: PHP v4 vs. PHP v5 behavior (fwd)
- Previous by thread: RE: PHP v4 vs. PHP v5 behavior
- Next by thread: Re: PHP v4 vs. PHP v5 behavior (fwd)
- Index(es):