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 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题