socket_recv() failed; reason: Success

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

BurhanKhan1
New php-forum User
New php-forum User
Posts: 2
Joined: Sat Oct 05, 2013 12:41 pm

socket_recv() failed; reason: Success

Postby BurhanKhan1 » Sat Oct 05, 2013 1:22 pm

Hi

I opend a remote socket of a remote server and read a command and get the result. But when i give 2nd command it writes on the socket bet at time of reading it gets an error


socket_recv() failed; reason: Success,

Please help so that i am able to write and read multiple extensions on after another.

Thanks

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: socket_recv() failed; reason: Success

Postby johnj » Sat Oct 12, 2013 12:31 am

try to print the error using socket_strerror(socket_last_error())


Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 1 guest