php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "Socket connections"

Why does the get_resource_type() function return "stream" instead of "socket" when using fsockopen() in PHP?

The get_resource_type() function returns "stream" instead of "socket" when using fsockopen() in PHP because fsockopen() creates a stream resource, not...

What are some common pitfalls when dealing with socket operations in PHP?

One common pitfall when dealing with socket operations in PHP is not properly handling errors that may occur during the socket communication. It is im...

How can PHP be used to handle server socket output in real-time?

When handling server socket output in real-time with PHP, you can use the `stream_socket_client` function to establish a connection to the server sock...

How does the fwrite function interact with the socket returned by fsockopen in PHP?

The fwrite function in PHP is used to write data to a file or resource. When using fwrite with a socket returned by fsockopen, you can write data to t...

In what scenarios would it be more advisable to use a different language like Node.js instead of PHP for socket listening on a Raspberry client?

In scenarios where you require high performance and real-time capabilities for socket listening on a Raspberry client, it may be more advisable to use...

Showing 66 to 70 of 3053 results

‹ 1 2 ... 11 12 13 14 15 16 17 ... 610 611 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.