Menu Riverview Church

STREAM_SOCKET_CLIENT

Open Internet or Unix domain socket connection

SYNTAX

stream_socket_client ( string $remote_socket [, int &$errno [, string &$errstr [, float $timeout = ini_get("default_socket_timeout") [, int $flags = STREAM_CLIENT_CONNECT [, resource $context ]]]]] ) : resource

PARAMETERS

remote_socket

Address to the socket to connect to.

errno

Will be set to the system level error number if connection fails.

errstr

Will be set to the system level error message if the connection fails.

timeout

Number of seconds until the connect() system call should timeout.

Note: This parameter only applies when not making asynchronous connection attempts.

Note: To set a timeout for reading/writing data over the socket, use the stream_set_timeout(), as the timeout only applies while making connecting the socket.

flags

Bitmask field which may be set to any combination of connection flags. Currently the select of connection flags is limited to STREAM_CLIENT_CONNECT (default), STREAM_CLIENT_ASYNC_CONNECT and STREAM_CLIENT_PERSISTENT.

context

A valid context resource created with stream_context_create().

RETURN

On success a stream resource is returned which may be used together with the other file functions (such as fgets(), fgetss(), fwrite(), fclose(), and feof()), FALSE on failure.

EXAMPLES

REMOTE_SOCKET

HTTP/1.1 200 OK
Date: Thu, 22 Oct 2020 11:47:51 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

6a2
<!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="/sevens/"><img alt="Sevens" src="/assets/svg/Sevens.svg" title="Sevens"></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 11:47:51 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

6c9
<!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="/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

FLAGS | STREAM_CLIENT_CONNECT

HTTP/1.1 200 OK
Date: Thu, 22 Oct 2020 11:47:51 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

6a2
<!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="/euchre/"><img alt="Euchre" src="/assets/svg/Euchre.svg" title="Euchre"></a>

        </section>

    </main>
    <footer>

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

    </footer>

</body>
</html>
0

FLAGS | STREAM_CLIENT_ASYNC_CONNECT

HTTP/1.1 200 OK
Date: Thu, 22 Oct 2020 11:47:51 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="/Bible-pictures/"><img alt="Bible Pictures" src="/assets/svg/BiblePictures.svg" title="Bible Pictures"></a>

        </section>

    </main>
    <footer>

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

    </footer>

</body>
</html>
0

FLAGS | STREAM_CLIENT_PERSISTENT


CONTEXT

HTTP/1.1 200 OK
Date: Thu, 22 Oct 2020 11:47:51 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

6c9
<!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="/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

RETURN

Resource id #3

PHP