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.