Menu Riverview Church

FSOCKOPEN

Open Internet or Unix domain socket connection

SYNTAX

fsockopen ( string $hostname [, int $port = -1 [, int &$errno [, string &$errstr [, float $timeout = ini_get("default_socket_timeout") ]]]] ) : resource

PARAMETERS

hostname

If OpenSSL support is installed, you may prefix the hostname with either ssl:// or tls:// to use an SSL or TLS client connection over TCP/IP to connect to the remote host.

port

The port number. This can be omitted and skipped with -1 for transports that do not use ports, such as unix://.

errno

If provided, holds the system level error number that occurred in the system-level connect() call.

If the value returned in errno is 0 and the function returned FALSE, it is an indication that the error occurred before the connect() call. This is most likely due to a problem initializing the socket.

errstr

The error message as a string.

timeout

The connection timeout, in seconds.

Note: If you need to set a timeout for reading/writing data over the socket, use stream_set_timeout(), as the timeout parameter to fsockopen() only applies while connecting the socket.

RETURN

Returns a file pointer which may be used together with the other file functions (such as fgets(), fgetss(), fwrite(), fclose(), and feof()). If the call fails, it will return FALSE

EXAMPLES

HOSTNAME


PORT

HTTP/1.1 200 OK
Date: Thu, 22 Oct 2020 14:27:43 GMT
Server: Apache
X-Powered-By: PHP/7.4.9
Pragma: no-cache
cache-control: must-revalidate, no-cache, no-store, no-transform
expires: 0
x-frame-options: sameorigin
x-robots-tag: noarchive, noimageindex
Upgrade: h2,h2c
Connection: Upgrade, close
Vary: Accept-Encoding,User-Agent
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

6c1
<!doctype html>
<html>
<head>

    <title>osbo.com</title>
    <link href="/assets/css/" rel="stylesheet">
    <link href="/assets/ico/" rel="icon">
    <script src="/assets/js/"></script>

</head>
<body>

    <header>

        <a href="/"><img alt="osbo.com" id="header-logo" src="/assets/svg/Logo.svg" title="osbo.com"></a>
        <img alt="Menu" id="header-menu" onclick="menu()" src="/assets/svg/Menu.svg" title="Menu">
        <a href="https://rivchurch.com/" target="_blank"><img alt="Riverview Church" id="header-banner" src="/assets/svg/RiverviewChurch.svg" title="Riverview Church"></a>

    </header>
    <nav>

        <section>

            <a href="/Jesus/">Jesus</a>
            <a href="/Bible/">Bible</a>

        </section>
        <section>

            <a href="/htaccess/">.htaccess</a>
            <a href="/acme.sh/">acme.sh</a>
            <a href="/applications/">Applications</a>
            <a href="/css/">CSS</a>
            <a href="/favicon/">Favicon</a>
            <a href="/flash/">Flash</a>
            <a href="/html/">HTML</a>
            <a href="/js/">JS</a>
            <a href="/php/">PHP</a>
            <a href="/sketchup/">SketchUp</a>
            <a href="/unity/">Unity</a>
            <a href="/xcode/">Xcode</a>

        </section>
        <section>

            <a href="/about/">About</a>
            <a href="/terms/">Terms</a>

        </section>

    </nav>
    <main id="home">

        <section>

            <a href="/miniature-golf/"><img alt="Miniature Golf" src="/assets/svg/MiniatureGolf.svg" title="Miniature Golf"></a>

        </section>

    </main>
    <footer>

        <a href="#" id="footer-copyright">&copy; 2020 Osbo Design</a>

    </footer>

</body>
</html>
0

ERRNO

0

ERRSTR

php_network_getaddresses: getaddrinfo failed: Name or service not known (0)

TIMEOUT

HTTP/1.1 200 OK
Date: Thu, 22 Oct 2020 14:27:43 GMT
Server: Apache
X-Powered-By: PHP/7.4.9
Pragma: no-cache
cache-control: must-revalidate, no-cache, no-store, no-transform
expires: 0
x-frame-options: sameorigin
x-robots-tag: noarchive, noimageindex
Upgrade: h2,h2c
Connection: Upgrade, close
Vary: Accept-Encoding,User-Agent
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8

70a
<!doctype html>
<html>
<head>

    <title>osbo.com</title>
    <link href="/assets/css/" rel="stylesheet">
    <link href="/assets/ico/" rel="icon">
    <script src="/assets/js/"></script>

</head>
<body>

    <header>

        <a href="/"><img alt="osbo.com" id="header-logo" src="/assets/svg/Logo.svg" title="osbo.com"></a>
        <img alt="Menu" id="header-menu" onclick="menu()" src="/assets/svg/Menu.svg" title="Menu">
        <a href="https://samaritanspurse.org/" target="_blank"><img alt="Samaritan's Purse" id="header-banner" src="/assets/svg/SamaritansPurse.svg" title="Samaritan's Purse"></a>

    </header>
    <nav>

        <section>

            <a href="/Jesus/">Jesus</a>
            <a href="/Bible/">Bible</a>

        </section>
        <section>

            <a href="/htaccess/">.htaccess</a>
            <a href="/acme.sh/">acme.sh</a>
            <a href="/applications/">Applications</a>
            <a href="/css/">CSS</a>
            <a href="/favicon/">Favicon</a>
            <a href="/flash/">Flash</a>
            <a href="/html/">HTML</a>
            <a href="/js/">JS</a>
            <a href="/php/">PHP</a>
            <a href="/sketchup/">SketchUp</a>
            <a href="/unity/">Unity</a>
            <a href="/xcode/">Xcode</a>

        </section>
        <section>

            <a href="/about/">About</a>
            <a href="/terms/">Terms</a>

        </section>

    </nav>
    <main id="home">

        <section>

            <a href="/Jesus-loves-the-little-children/"><img alt="Jesus Loves the Little Children" src="/assets/svg/JesusLovesTheLittleChildren.svg" title="Jesus Loves the Little Children"></a>

        </section>

    </main>
    <footer>

        <a href="#" id="footer-copyright">&copy; 2020 Osbo Design</a>

    </footer>

</body>
</html>
0

RETURN

Resource id #2

PHP