如何为 zend 创建自定义 php.ini 文件?
我在 zend 的 application.ini 文件中使用了 PDO_MYSQL 连接,它在本地主机上工作,因为 extension=php_pdo_mysql.dll
已启用。当我在服务器上运行代码时,它会抛出异常消息:SQLSTATE[28000] [1045]用户'rdvscoin_main'@'host.indiandns.com'访问被拒绝(使用密码:YES)
因为pdo_mysql
在服务器上禁用,我想通过自定义 php.ini 文件启用该扩展。为此我能做什么呢?我想创建自定义 php.ini 文件,但我不知道如何创建,它可以存储在哪里? 如果有人有其他想法,请建议我......
I used PDO_MYSQL connection in application.ini file of zend its work on localhost because extension=php_pdo_mysql.dll
is enable. When i run code on server its throws exception Message: SQLSTATE[28000] [1045] Access denied for user 'rdvscoin_main'@'host.indiandns.com' (using password: YES)
because pdo_mysql
is disable on server and i want enable that extension by custom php.ini file. For this what can i do? I want to create custom php.ini file but i don't known how can i create , where its can store?
If any one have alternate idea then suggest me please.....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这确实与 Zend 无关。
不存在针对单个项目的自定义 php.ini 之类的东西。您可以使用不同的设置运行 VirtualHosts,但我认为即使它们都使用相同的 ini 文件。
而是让管理员启用 PDO 扩展(但每个人都在运行 Oo)
但是考虑到错误,我想说它也是一个权限问题 - 尝试使用“localhost”而不是指定的?
This has nothing to do with Zend, really.
There is no such thing as a custom php.ini for a single project. You can run VirtualHosts with different settings, but even they all use the same ini file i think.
Rather have the administrator enable PDO extension (but EVERYONE has that running Oo)
But given the error i'd say its a permission problem, too - tried using 'localhost' instead of the specified?