Pregunta

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.

¿Fue útil?

Solución

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.

Otros consejos

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!

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top