dtcaw02086 2014-04-15 01:46
浏览 429

extension = php_sockets.dll,不启用Socket

I am using Godaddy Linux Shared Hosting. I want to start socket in php. while googling I found

extension=php_sockets.dll
extension=php_sockets.so

to be uncommented. I put php5.ini and php.ini files to my server to override default settings and put above directives in it. Yet its not working.

you can see my phpgetinfo() output at , MyWebsite

When I call socket_create() function , it gives me an error Fatal error: Call to undefined function socket_create()

I contacted GoDaddy Customer Care but they said everything is fine from their side ,and my code is incorrect. But I haven't put anything other than just calling to this function.

Kindly Help me to solve the problem.


UPDATE

I raised a ticket for above problem and go daddy replied me

PHP Sockets are not supported on Web Hosting plans. If you require that functionality you will want to review the Virtual Private Server or Dedicated Server plans. Our servers are sold with the understanding that administration duties, security and management of the server are your responsibility. For more information on the servers we offer please review the following.

Dedicated servers

Virtual Private Servers

Please let us know if we can assist you in any other way.

  • 写回答

1条回答 默认 最新

  • douduo2407 2014-04-15 02:03
    关注

    The instructions you've found are incorrect. The lines you're trying to insert into php.ini are for a Windows system - the equivalent extension files on Linux have a .so extension, not .dll, and are named somewhat differently.

    If they are present on your server, you may be able to load this extension by naming it correctly:

    extension = sockets.so
    

    However, if this extension is not installed, attempting to load it this way will have no effect. You will need to ask your host's support team to install the extension.

    评论

报告相同问题?

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办