Reply to open_basedir

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация