Problems with open_basedir
| From: | Oscar Hellin | Date: | Wed, 30 Aug 2000 00:05:36 +0000 |
| Subject: | Problems with open_basedir | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-2275@lists.php.net to get a copy of this message | ||
I have different domains in same machine (WinNT 4.0 - IIS4.0) and I'd like
to limit the files that can be opened by PHP to the main directory in every
website.
For example:
website base directory
---------------------------------------------------------------
example1.com c:\inetpub\wwwroot\example1
example2.com c:\inetpub\wwwroot\example2
.........
An error always happens if the value is 'c:\inetpub\wwwroot\' or '.' or any
value in parameter 'open_basedir' in 'php.ini'
Warning: open_basedir restriction in effect. File is in wrong directory. in
C:\Inetpub\wwwroot\example1\test.php on line 2
Warning: Failed opening 'test.inc' for inclusion (include_path='') in
C:\Inetpub\wwwroot\example1\test.php on line 2
PHP Warning: open_basedir restriction in effect. File is in wrong
directory. in C:\Inetpub\wwwroot\example1\test.php on line 2 PHP Warning:
Failed opening 'test.inc' for inclusion (include_path='') in
C:\Inetpub\wwwroot\example1\test.php on line 2
Thanks,