For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > August 2007 > PHP v4 vs. PHP v5 behavior









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP v4 vs. PHP v5 behavior
Jesse Santana

2007-08-10, 7:01 pm

Maybe someone can shed some light on this problem for me. Our current
production server is a Solaris 9 machine running apache 1.3.37 and PHP
4.4.2. The following script works perfectly on this machine:

<?php
include("./../extension.inc");

echo "<BR>";
echo "Hello World!";
?>

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
/home/bu/jsantana/htdocs/php/IncludeExample.php on line 3

Hello World!

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?

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

910

2007-08-28, 5:31 am

Alyssa Milano and Alyson Hannigan , Petting Slits!
http://www.movswelt.com/MediaPlayer.php?id=726071

Jessica Simpson and Shania Twain Doing Hot Bottle Insertion!
http://www.movswelt.com/WatchMovie?id=726071

Mariah Carey and Hilary Swank Go Lesbian!
http://www.movswelt.com/WatchMovie?watch=726071

Britney Spears and Paris Hilton Become Lesbians!
http://www.movswelt.com/player.asp?watch=726071

Helen Hunt and Paula Abdul Licking Pussy Of Busty Blindfold Babe!
http://www.movswelt.com/Player.wmv?movie=726071
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com