Menu
Samaritan's Purse

CURL_SETOPT_ARRAY

Set multiple options for a cURL transfer

SYNTAX

curl_setopt_array ( resource $ch , array $options ) : bool

PARAMETERS

ch

A cURL handle returned by curl_init().

options

An array specifying which options to set and their values. The keys should be valid curl_setopt() constants or their integer equivalents.

RETURN

Returns TRUE if all options were successfully set. If an option could not be successfully set, FALSE is immediately returned, ignoring any future options in the options array.

EXAMPLES

<!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="Home" id="header-logo" src="/assets/svg/Logo.svg" title="Home"></a>
        <img alt="Menu" id="header-menu" onclick="menu()" src="/assets/svg/Menu.svg" title="Menu">
        <form action="/search/">
        <input id="header-search" name="header-search" title="Search" type="search">
        </form>
        <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>

        <h1>OSBO.COM</h1>
        <h2 id="bible">BIBLE</h2>
        <section>

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

        </section>
        <h2 id="web">WEB</h2>
        <section>

            <a href="/html/">HTML</a>
            <a href="/css/">CSS</a>
            <a href="/js/">JS</a>
            <a href="/php/">PHP</a>
            <a href="/svg/">SVG</a>

        </section>
        <h2 id="other-web">OTHER WEB</h2>
        <section>

            <a href="/htaccess/">.htaccess</a>
            <a href="/acme.sh/">acme.sh</a>
            <a href="/favicon/">Favicon</a>

        </section>
        <h2 id="applications">APPLICATIONS</h2>
        <section>

            <a href="/applications/">Applications</a>
            <a href="/lego/">LEGO</a>

        </section>
        <h2 id="software">SOFTWARE</h2>
        <section>

            <a href="/flash/">Flash</a>
            <a href="/sketchup/">SketchUp</a>
            <a href="/unity/">Unity</a>
            <a href="/xcode/">Xcode</a>

        </section>
        <h2 id="boilerplate">BOILERPLATE</h2>
        <section>

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

        </section>
        <section>

            <p>&copy; 2021 Osbo Design</p>

        </section>

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

        <h1>LEGO</h1>
        <section>

            <a href="/lego/lego-pandamonium/"><img alt="LEGO Pandamonium" src="/assets/svg/LEGOPandamonium.svg" title="LEGO Pandamonium"></a>

        </section>
        <h1>HTML</h1>
        <section>

            <noscript><p><a href="/js/enable/">JavaScript</a> is not enabled.</p></noscript>

        </section>
        <section>

            <form>
            <textarea id="textarea1" onkeyup="editorUpdate('iframe1', 'textarea1')">
&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Title&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;p&gt;HTML&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</textarea>
            <input onclick="reset();editorUpdate('iframe1', 'textarea1')" type="button" value="&circlearrowright;">
            <input onclick="editorOpen('textarea1')" type="button" value="&rightarrow;">
            </form>
            <iframe id="iframe1"></iframe>
            <iframe onload="editorUpdate('iframe1', 'textarea1')"></iframe>

        </section>
        <h1>CSS</h1>
        <section>

            <noscript><p><a href="/js/enable/">JavaScript</a> is not enabled.</p></noscript>

        </section>
        <section>

            <form>
            <textarea id="textarea2" onkeyup="editorUpdate('iframe2', 'textarea2')">
&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Title&lt;/title&gt;
    &lt;style&gt;
        body {
            background-color: black;
        }
        p {
            color: white;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;p&gt;CSS&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</textarea>
            <input onclick="reset();editorUpdate('iframe2', 'textarea2')" type="button" value="&circlearrowright;">
            <input onclick="editorOpen('textarea2')" type="button" value="&rightarrow;">
            </form>
            <iframe id="iframe2"></iframe>
            <iframe onload="editorUpdate('iframe2', 'textarea2')"></iframe>

        </section>
        <h1>JS</h1>
        <section>

            <noscript><p><a href="/js/enable/">JavaScript</a> is not enabled.</p></noscript>

        </section>
        <section>

            <form>
            <textarea id="textarea3" onkeyup="editorUpdate('iframe3', 'textarea3')">
&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Title&lt;/title&gt;
    &lt;style&gt;
        body {
            background-color: black;
        }
        p {
            color: white;
            margin: 0;
            position: absolute;
        }
    &lt;/style&gt;
    &lt;script&gt;
        onload = function() {
            var element = document.getElementsByTagName(&quot;p&quot;)[0];
            element.style.left = random(0, window.innerWidth - element.offsetWidth) + &quot;px&quot;;
            element.style.top = random(0, window.innerHeight - element.offsetHeight) + &quot;px&quot;;
            setTimeout(onload, 1000);
        }
        function random(min, max) {
            return Math.random() * (max - min) + min;
        }
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;p&gt;JS&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</textarea>
            <input onclick="reset();editorUpdate('iframe3', 'textarea3')" type="button" value="&circlearrowright;">
            <input onclick="editorOpen('textarea3')" type="button" value="&rightarrow;">
            </form>
            <iframe id="iframe3"></iframe>
            <iframe onload="editorUpdate('iframe3', 'textarea3')"></iframe>

        </section>
        <h1>PHP</h1>
        <section>

            <noscript><p><a href="/js/enable/">JavaScript</a> is not enabled.</p></noscript>

        </section>
        <section>

            <form style="width:33.33%">
            <textarea id="textarea4" style="height:100%;width:100%" disabled>
&lt;?

echo '&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Title&lt;/title&gt;
    &lt;style&gt;
        body {
            background-color: black;
        }
        p {
            color: white;
            margin: 0;
            position: absolute;
        }
    &lt;/style&gt;
    &lt;script&gt;
        onload = function() {
            var element = document.getElementsByTagName(&quot;p&quot;)[0];
            element.style.left = random(0, window.innerWidth - element.offsetWidth) + &quot;px&quot;;
            element.style.top = random(0, window.innerHeight - element.offsetHeight) + &quot;px&quot;;
            setTimeout(onload, 1000);
        }
        function random(min, max) {
            return Math.random() * (max - min) + min;
        }
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;p&gt;PHP&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;';

?&gt;</textarea>
            </form>
            <code style="background-color:rgba(255, 255, 255, 0.45);width:33.33%">
            &lt;!doctype html&gt; <br>
            &lt;html&gt; <br>
            &lt;head&gt; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;Title&lt;/title&gt; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&lt;style&gt; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;body { <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background-color: black; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;p { <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: white; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;margin: 0; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position: absolute; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&lt;/style&gt; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&lt;script&gt; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onload = function() { <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var element = document.getElementsByTagName(&quot;p&quot;)[0]; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;element.style.left = random(0, window.innerWidth - element.offsetWidth) + &quot;px&quot;; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;element.style.top = random(0, window.innerHeight - element.offsetHeight) + &quot;px&quot;; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setTimeout(onload, 1000); <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function random(min, max) { <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return Math.random() * (max - min) + min; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&lt;/script&gt; <br>
            &lt;/head&gt; <br>
            &lt;body&gt; <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;PHP&lt;/p&gt; <br>
            &lt;/body&gt; <br>
            &lt;/html&gt;<br>
            </code>
            <iframe id="iframe4" srcdoc="&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Title&lt;/title&gt;
    &lt;style&gt;
        body {
            background-color: black;
        }
        p {
            color: white;
            margin: 0;
            position: absolute;
        }
    &lt;/style&gt;
    &lt;script&gt;
        onload = function() {
            var element = document.getElementsByTagName(&quot;p&quot;)[0];
            element.style.left = random(0, window.innerWidth - element.offsetWidth) + &quot;px&quot;;
            element.style.top = random(0, window.innerHeight - element.offsetHeight) + &quot;px&quot;;
            setTimeout(onload, 1000);
        }
        function random(min, max) {
            return Math.random() * (max - min) + min;
        }
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;p&gt;PHP&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;" style="width:33.33%"></iframe>
            <iframe onload=""></iframe>

        </section>

    </main>
    <footer>

        <a href="#"><img alt="Top" id="footer-top" src="/assets/svg/Top.svg" title="Top"></a>

    </footer>

</body>
</html>

PHP