file() [function.file]: URL file-access is disabled in the server configuration error
<p>my code is</p>

<pre><code>&lt;?php
if ($_POST['hiddensms']) {
    ini_set("allow_url_fopen", "ON");
    ini_set("allow_url_include", "ON");
    $smsno = explode(',', $_POST['hiddensms']);
    foreach ($smsno as $mono) {
        $baseurl         = "http://api.xxxxxxxxxxxx.com";
        $sql_q           = "select firstname,lastname from tbl_newsletter where phone='" . $mono . "'";
        $resultcount     = mysql_query($sql_q);
        $row_total_count = mysql_fetch_array($resultcount);
        $first_name      = $row_total_count['firstname'];
        $last_name       = $row_total_count['lastname'];
        if ($_POST['sel_name_sms'] == 'FirstName') {
            $setname = $first_name;
        } else {
            $setname = $last_name;
        }
        $smsBodyText = $_POST['sal_sms'] . ' ' . $setname . '\n';
        $text        = urlencode($smsBodyText . $_POST['msg_body']);
        $to          = $mono;
        $url         = "$baseurl/http/auth?user=$user&amp;password=$password&amp;api_id=$api_id";
        // do auth call
        $ret         = file($url);
        // explode our response. return string is on first line of the data returned
        $sess        = explode(":", $ret[0]);
        if ($sess[0] == "OK") {
            $sess_id = trim($sess[1]); // remove any whitespace
            $url     = "$baseurl/http/sendmsg?user=xx&amp;password=xxxxx&amp;api_id=3370743&amp;to=$to&amp;text=$text";
            //ht$ret = file($url);
            $send    = explode(":", $ret[0]);
            if ($send[0] == "ID") {
                echo "success\nmessage ID: " . $send[1];
            } else {
                echo "send message failed";
            }
        } else {
            echo "Authentication failure: " . $ret[0];
        }
    }
}
?&gt;
</code></pre>

<p>i am trying to send sms by api, but is giving me this error</p>

<p>Warning: file() [function.file]: URL file-access is disabled in the server configuration in /xxxxxxxsubscriber-list.php on line 622
    Warning: file(http://api.xxxxx.com/http/auth?user=xx&amp;xx&amp;api_id=xx) [function.file]: failed to open stream: no suitable wrapper could be found in /xxxxxx/subscriber-list.php on line 622
    Authentication failure:</p>

<p>i set .htaccess like</p>

<pre><code>&lt;IfModule mod_php5.c&gt;
php_admin_value allow_url_fopen On
php_admin_value allow_url_include On
&lt;/IfModule&gt;
</code></pre>

<p>but its not working. i dont know what to do, if any idea, please help me</p>

<p>i have searched out on some web they  suggest to in  <code>php.ini</code></p>

<pre><code>allow_url_fopen = On
allow_url_include = On
</code></pre>

<p>but i can't access <code>php.ini</code> , so any other way to soved this ?</p>
