Answer the question
In order to leave comments, you need to log in
How to access program files folder from php script?
We have Denwer 3, Windows 7 and a site that loads some information from an mdb (Access) database.
The problem is that this database is located in C:\Program Files\<Program Name>\base.mdb, and the site itself is located in C:\WebServers\home\loc\<Site Name>. Therefore, when executing the command
is_readable('C:\Program Files\<Название программы>\base.mdb');
we get bool(false), the connection to the database, respectively, also fails. Answer the question
In order to leave comments, you need to log in
is_readable('C:\\Program\ Files\\<Program Name>\\base.mdb'); - first shielding.
Secondly, open_basedir and similar chroot analogs can be enabled or safemode enabled , first
create c:\qwe.txt and try to read it as c:\\qwe.txt or /qwe.txt
One more thing. Forget Denver. Use Xampp, openserver or winginx
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question