curl_setopt() expects parameter 1 to be resource - CURL Issue
<p>I have one issue in my code, I would like get info through CURL (little payment gateway) but i have the next issue...</p>

<p>Warning: curl_setopt() expects parameter 1 to be resource, null given in /home/xxxxxx/public_html/xxxxxxx/myaccount/xxxx.php on line 12</p>

<p>And I have the next code lines.. </p>

<pre><code>$getbin  = 'https://binlist.net/json/".$bin."';
    $get  = curl_init();
    curl_setopt($curl, CURLOPT_URL, $getbin);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
    $exec  = curl_exec($get);
    curl_close($get);
    $cc           = json_decode($exec);
    $ccbrand      = $cc-&gt;brand;
    $ccbank       = $cc-&gt;bank;
    $cctype       = $cc-&gt;card_type;
    $ccklas       = $cc-&gt;card_category;
</code></pre>

<p>Can you help me? Thank you so much</p>