分享

写回答

发帖

linux主机有办法安装自己的扩展php函数吗?

GoDaddy GoDaddy 2467 人阅读 | 4 人回复

发表于 2007-7-1 18:04:37 | 显示全部楼层 |阅读模式

使用的程序需要iconv()函数。结果竟然发现Godaddy的PHP4中没有装libiconv。顿时抓瞎。
PHP5倒是支持这个函数,可惜PHP5不支持Zend Optimizer。我使用的程序又都是加密的,一定得用ZO。

Godaddy支持自定义php.ini,哪位达人可否告诉我,如果修改PHP配置,有可能用自己上传的php函数吗?我很想用iconv()!谢谢了。

回答|共 4 个

大漠孤狼

发表于 2007-7-1 20:33:49 | 显示全部楼层

这个最好咨询godaddy吧

will

发表于 2007-7-2 09:09:11 | 显示全部楼层

Godaddy有回复

PHP fucntions are modifiable on Linux Configuration 2.0 with the php.ini file in the root. More information on PHP.ini files can be found here: http://help.godaddy.com/article.php?article_id=1085. Please be advised that we do not custom troubleshoot PHP.ini files.

里面提到的地址http://help.godaddy.com/article.php?article_id=1085上面说:
If you are running Hosting Configuration 2.0, you can create custom .ini files for both PHP 4 (PHP.ini) and PHP 5 (PHP5.ini) in the root directory of your site. Initialization files can be used to manage form, server, and environmental variables, server-side cookies, temporary directories, error display, and error logging.

NOTEHP.ini and PHP5.ini files must be in the root directory to function properly. Placing these files in subdirectories, whether or not they are aliased to the root directory, will result in your initialization files not to work,

核心意思显然是php.ini可以自己定制,但我不知道修改php.ini是否可以用到自己的扩展函数?在我概念里,扩展函数是需要重新启动Apache才可以启用的。

大漠孤狼

发表于 2007-7-2 09:29:13 | 显示全部楼层

可以修改了,然后用phpinfo 查一下是否生效

will

发表于 2007-7-2 09:34:18 | 显示全部楼层

谢谢,我去试试先!
您需要登录后才可以回帖 登录 | 注册

本版积分规则