dongzhang6544 2013-10-21 07:26
浏览 37
已采纳

如何在1and1共享服务器上激活php扩展? [关闭]

I just created a web application that uses sockets in my local server. Everything works. The problems start when I hosted my resources on a 1and1 shared server. I get the following fatal error

Fatal error: Call to undefined function socket_create ()

it is clear that the extension php_socket is not enabled. There's there a way to enable this extension by code?

  • 写回答

1条回答 默认 最新

  • dongwei9365 2013-10-21 07:37
    关注

    In most cases, you cannot install or activate additional PHP modules on shared hosting.

    Shared hosting has a very limited perimeter and strict security requirements. Most functions for program execution and networking will be disabled on most shared hosting offers. Shared hosting offers that let you do anything are very rare and priced accordingly.

    Besides, installing or activating extensions at execution time is impossible since PHP version 5.3. See http://php.net/manual/en/function.dl.php

    If you want to build advanced applications, shared hosting is not the right product choice. Look for virtual servers (which you can set up as you like) or even get a full dedicated server.


    If you really want to press the matter, I recommend contacting your 1&1 customer service and ask for directions there. They may or may not be able to help you on to achieve your goal.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部