D
D
DEamON_M2014-08-13 14:41:43
PHP
DEamON_M, 2014-08-13 14:41:43

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.
It turns out that there are not enough rights. How can I fix this without moving the database file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Skogorev, 2014-08-13
@EnterSandman

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 question

Ask a Question

731 491 924 answers to any question