Use pear : need to enable stream_socket_client()

Status
Not open for further replies.

grozalou

New Member
Messages
3
Reaction score
0
Points
0
Hello,

To use pear library, I need to enable stream_socket_client() function.
Now I get an error message :
HTTP_OAuth_Exception: Unable to connect to tcp://api.example.com:80. Error: stream_socket_client() has been disabled for security reasons in /home/****/public_html/path/to/pear/PEAR.php on line 113

Is there a way to solve this problem ?

Thanks
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
We can't enable the function if it's been disabled for security; my guess is that function has been disabled due to massive abuse related to botnets and DDoS scripts. You can thank the folks who abuse the service for getting it blocked.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
If you want to use a PEAR module, you can manually install the core PEAR files and adjust the include path on your scripts.

stream_socket_client() should be needed only by specific scripts.
 

grozalou

New Member
Messages
3
Reaction score
0
Points
0
Thanks for your answer.

I installed pear files on my own space, but I need to use stream_socket_client to use REST APIs...
 
Status
Not open for further replies.
Top