webbouk
Well-known member
The present setting for open_basedir within php.ini on my server is to allow access to all files (;open_basedir =)
I'm presuming that only applies from the root of the drive that php is installed in, ie in this case the C drive.
A quick check of the php_info file shows the setting to be: C:/Inetpub/vhosts/site_name\;C:\WINDOWS\Temp\
To give PHP access to a folder on the D drive in the same server would this be as simple as changing the line within php.ini to:
open_basedir = C:\Inetpub\vhosts\ ; D:\foldername
which would give PHP access to all websites within the C drive and the folder within D drive?
I'm presuming that only applies from the root of the drive that php is installed in, ie in this case the C drive.
A quick check of the php_info file shows the setting to be: C:/Inetpub/vhosts/site_name\;C:\WINDOWS\Temp\
To give PHP access to a folder on the D drive in the same server would this be as simple as changing the line within php.ini to:
open_basedir = C:\Inetpub\vhosts\ ; D:\foldername
which would give PHP access to all websites within the C drive and the folder within D drive?