View previous topic :: View next topic |
Author |
Message |
jcvamp -
Joined: 01 Jul 2022 Posts: 2
|
Posted: Fri Jul 01, 2022 10:00 pm Post subject: How do you enable websockets? |
|
|
I'm using Abyss Web Server on a Windows 10 machine, and I wanted to use a websockets to send UDP messages to a program. However, the webpage returns the error, 'Uncaught Error: Call to undefined function socket_create()', so, presumably, websockets aren't enabled. How would I go about enabling them?
Thanks. |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1298
|
Posted: Sat Jul 02, 2022 7:11 pm Post subject: Re: How do you enable websockets? |
|
|
jcvamp wrote: | I'm using Abyss Web Server on a Windows 10 machine, and I wanted to use a websockets to send UDP messages to a program. However, the webpage returns the error, 'Uncaught Error: Call to undefined function socket_create()', so, presumably, websockets aren't enabled. How would I go about enabling them?
Thanks. |
The error you are getting is about a missing function in your PHP setup. The function is called socket_create and it is available in the PHP sockets extension. To enable this extension, you must add that line in your php.ini file:
By the way, this extension is already enabled in our PHP preconfigured packages available from https://aprelium.com/downloads . So why not using one of them which comes with great deafults instead of wresting with the stock PHP setup from PHP's Web site?
As a side note, socket_create() as a call has nothing to do with Websockets. It's just dealing plain old sockets. :) _________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
jcvamp -
Joined: 01 Jul 2022 Posts: 2
|
Posted: Sun Jul 10, 2022 12:09 am Post subject: Re: How do you enable websockets? |
|
|
admin wrote: | The error you are getting is about a missing function in your PHP setup. The function is called socket_create and it is available in the PHP sockets extension. To enable this extension, you must add that line in your php.ini file:
By the way, this extension is already enabled in our PHP preconfigured packages available from https://aprelium.com/downloads . So why not using one of them which comes with great deafults instead of wresting with the stock PHP setup from PHP's Web site?
As a side note, socket_create() as a call has nothing to do with Websockets. It's just dealing plain old sockets. :) |
Thank you. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|