Question

I want to run a website on a server (actually only part of the server) I have a very limited access to. The only two things I can do is to connect via FTP to my part in the server and to connect to one MySQL database.

On this server I want to run some PHP code which uses PDO. The problem is that PDO is not enabled on this server.

So what can I do to have PDO on this server with the access I have?

Some more information on the server: It is a Windows server which runs Microsoft IIS 6.0. It has PHP 5.2.3.

Was it helpful?

Solution

If PDO isn't enabled (check <? phpinfo(); ?>) there's not much you can do... It can't be enabled without access to the PHP configuration on server level.

OTHER TIPS

Did you mean: permissions?

When you connect the database with pdo, then you set the user. If in the phpmyadmin create the user with low permissions, then you can connect with this user in php pdo.

Example, if you created the user name of: readonly, and set readonly user password and permissions, then in connection you can use this user and password.

Sry for my english!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top