|  | Posted by Schraalhans Keukenmeester on 06/16/07 07:37 
At Sat, 16 Jun 2007 06:21:07 +0000, davin.pearson@gmail.com let h(is|er)monkeys type:
 
 > Here is my file index.php:
 >
 > <?php
 > include "../parent.php";
 > ?>
 >
 > When I try to run this code on a Linux server, it gives me the
 > following error message:
 >
 > Warning: main(): open_basedir restriction in effect. File(../
 > parent.php) is not within the allowed path(s): (.) in \
 > \192.168.1.16\webfiles\files\2007-6\1475215\inner\index.php on line 3
 >
 > Warning: main(../parent.php): failed to open stream: Operation not
 > permitted in \\192.168.1.16\webfiles\files\2007-6\1475215\inner
 > \index.php on line 3
 >
 > Warning: main(): Failed opening '../parent.php' for inclusion
 > (include_path='.;c:\php\includes') in \\192.168.1.16\webfiles\files
 > \2007-6\1475215\inner\index.php on line 3
 >
 > What gives?
 
 Exactly what the first error indicates. You have an open_basedir
 restriction set in your php.ini, which limits file access to files only
 from that directory plus its subdirs.
 
 http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir
 
 You either have to modify the setting in php.ini or move your include
 file to a directory withing the allowed path.
 
 HTH
 
 
 --
 Schraalhans Keukenmeester - schraalhans@the.Spamtrapexample.nl
 [Remove the lowercase part of Spamtrap to send me a message]
 
 "strcmp('apples','oranges') < 0"
  Navigation: [Reply to this message] |