Posted by sreniaw on 06/24/06 21:40
Hello,
I use php 5.1.4 with apache 2.2.2 on Solaris 10.
The problem is that I can't configure open_basedir
because I always get warming message:
Warning: readfile() [function.readfile]: open_basedir restriction in
effect. File(test.txt) is not within the allowed path(s):
(/wwwroot/default) in /wwwroot/default/mk.php on line 3
Warning: readfile(test.txt) [function.readfile]: failed to open stream:
Not owner in /wwwroot/default/mk.php on line 3
open_basedir = /wwwroot/default
/wwwroot/default
- test.txt <- my txt file
- mk.php <- my script that read test.txt
<?
readfile("test.txt");
?>
My read file - test.txt is in open_basedir path.
When I use full path to the file everything is ok.
Do you have any clue ?
--
Marcin
Navigation:
[Reply to this message]
|