problem with require()
| From: | Nene | Date: | Thu, 01 May 2003 13:01:33 +0000 |
| Subject: | problem with require() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-145943@lists.php.net to get a copy of this message | ||
hello,
i've this problem with require(). in my script is
require "./file";
and php could not find this file.
i've found two solutions of thist problem.
first is to modify the line in the script to
require "file";
and the second is to add a read permission for all directories up to upper
directory to the directory with script (ex. dir1/dir2/dir3/myScript.php, so
i must set read permission to directory dir1 and dir2)
i've this problem in version 4.3.1. in version 4.2.2 worked everything fine.
does anybody know another solution of this problem? i don't want to allow
the listing in these directories and i am too lazy to modify scripts :-))
(maybe this two hints will help to somebody :-))
Nene