PHP Note: fwrite (): send failed with errno = 32 Broken pipe

I tried to execute a php script through the shell specified here by: -

php whatsapp.php -s MobileNo Message 

and I got the following error: -

 PHP Notice: fwrite(): send of 111 bytes failed with errno=32 Broken pipe in whatsprot.class.php on line 1923 

and line 1923 in whatsprot.class.php matches: -

 fwrite($this->socket, $data, strlen($data)); 

whatsprot.class.php here

Is there any fix for this problem?

+3
source share
1 answer

Perhaps this is due to the fact that your data contains the characters "utf-8". I had a similar problem.

Exception: mysql_query (): sending from 1462592 bytes with error = 32 Broken pipe

I used

 mysql -u username -p database < dump_file # this is bad 

There are many UTF8 characters (Thai language) for importing sql file, but I did not set default-character-set = utf8 for [mysql]. Thus, incorrect encoded data in the database caused this problem.

0
source

Source: https://habr.com/ru/post/1490983/


All Articles