# Kirupa PHP sockets tutorial doesn't wait for complete messages?

**URL:** <https://forum.kirupa.com/t/kirupa-php-sockets-tutorial-doesnt-wait-for-complete-messages/288357>\
**Category:** programming\
**Created:** [May 14, 2009, 4:21pm UTC](https://forum.kirupa.com/t/kirupa-php-sockets-tutorial-doesnt-wait-for-complete-messages/288357 "2009-05-14T16:21:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RavenWorks](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@RavenWorks](https://forum.kirupa.com/u/RavenWorks)\
**Post date:** [May 14, 2009, 4:21pm UTC](https://forum.kirupa.com/t/kirupa-php-sockets-tutorial-doesnt-wait-for-complete-messages/288357/1 "2009-05-14T16:21:19Z")

</div>

I think someone I work with was reading this tutorial:

[http://www.kirupa.com/developer/flash8/php5sockets\_flash8.htm](http://www.kirupa.com/developer/flash8/php5sockets_flash8.htm)

Am I misunderstanding how PHP’s socket\_recv works, or, would the socket server described in this tutorial not only not wait for complete messages to arrive, but also send multiple null-terminated messages simultaneously if more than one message arrived in the buffer while PHP was busy?
