Uncaught Error: Undefined constant AF_NET - PHP Socket

491 views Asked by At

*Hello everyone, I got AF_NET error using php socket. I try to found on multiple post, but all enable this extension=sockets or extension=php_sockets.dll in their php.ini and work.

I enable both and separately on my php.ini of my XAMPP in Windows, I resolve the Undefined socket_create but now I get this error and nothing works. Try to restart Xampp also.

If someone know and can help me please I would be very happy !

AF_NET undefined Error message

Here is my code below to create a php socket : enter image description here

0

There are 0 answers