UDP fwrite error on my shared hosting

Infernus 101

Registered
May 6, 2019
1
0
1
Italy
cPanel Access Level
Website Owner
I am having trouble with writing data to socket for udp connection using fwrite, i get this error : PHP Notice: fwrite(): send of 7 bytes failed with errno=1 Operation not permitted
I am using shared hosting with cpanel on godaddy, i contacted godaddy but they cant understand the problem, can you please explain me this if someone can?
 

httpdocs

Well-Known Member
Mar 9, 2018
59
9
83
United States
cPanel Access Level
Root Administrator
I am having trouble with writing data to socket for udp connection using fwrite, i get this error : PHP Notice: fwrite(): send of 7 bytes failed with errno=1 Operation not permitted
I am using shared hosting with cpanel on godaddy, i contacted godaddy but they cant understand the problem, can you please explain me this if someone can?
Make sure the ip address and port are correct.
Verify that the server is up and running.
Make sure the ip address and port are reachable (not blocked in any firewalls)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,216
363
Hello @Infernus 101,

You'll need to respond to the support request you opened with your provider and verify if the following PHP function is permitted:

PHP: fopen - Manual

It's likely they have disabled the use of this PHP function (and thus it's use as part of the fwrite action will fail).

Thank you.