Tagged articles
5 articles
Page 1 of 1
php Courses
php Courses
Nov 7, 2025 · Backend Development

Master PHP’s fsockopen(): Syntax, Parameters, and Real‑World Example

This article explains how PHP's fsockopen() function works, detailing its syntax, parameters, return values, and providing a complete example that demonstrates opening a TCP connection, sending an HTTP request, and handling the response, including notes on SSL usage.

Network programmingPHPSocket
0 likes · 4 min read
Master PHP’s fsockopen(): Syntax, Parameters, and Real‑World Example
php Courses
php Courses
Dec 27, 2023 · Backend Development

Using PHP’s fsockopen() Function to Open Network Connections

This article explains the PHP fsockopen() function, detailing its syntax, parameters, return values, and provides a complete example that demonstrates opening a TCP connection, sending an HTTP request, handling errors, and reading the response, including notes on SSL connections.

BackendNetwork programmingPHP
0 likes · 4 min read
Using PHP’s fsockopen() Function to Open Network Connections
Laravel Tech Community
Laravel Tech Community
Jul 24, 2020 · Backend Development

PHP fsockopen() Function: Usage, Parameters, and Examples

fsockopen() opens a network or Unix socket connection in PHP, with detailed parameter explanations, default behavior, error handling, and two practical code examples demonstrating HTTP GET requests and UDP socket usage, along with notes on blocking mode and related functions.

BackendNetwork programmingPHP
0 likes · 4 min read
PHP fsockopen() Function: Usage, Parameters, and Examples