title: Is there any alternate to cURL
body: <p>I am currently working with instamojo payment gateway.</p>
  
  <p>I have a payment ID for the same and using the following code to get the payment status </p>
  
  <pre><code>echo $cUrl = 'https://test.instamojo.com/api/1.1/payments/' . $payment_id;
                       (function_exists('curl_init')) ? '' : die('cURL Must be installed for geturl function to work. Ask your host to enable it or uncomment extension=php_curl.dll in php.ini');
                      $ch = curl_init();
                      curl_setopt($ch, CURLOPT_URL, $cUrl);
                      curl_setopt($ch, CURLOPT_HEADER, FALSE);
                      curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
                      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
                      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
                      curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-Api-Key:90a1c44nmb8ac4e65nmnm3eab5b308cf",
                                                                 "X-Auth-Token:8164083509a889951fhjhjh1ff89c4"));
                      $response = curl_exec($ch);
                      $error_number = curl_errno($ch);
                      $error_message = curl_error($ch);
                      curl_close($ch);
                      $response_obj = json_decode($response, true);
                      echo "Eror number: $error_number&lt;br /&gt;";
                      echo "Eror message: $error_message&lt;br /&gt;";
                      print_r($response_obj);
  
                      if($response_obj['success'] == false) {
                          $message = json_encode($response_obj['message']);
                          return Array('payment' =&gt; Array('status' =&gt; $message));
  
                      }
                      if(empty($response_obj) || is_null($response_obj)){
                          return Array('payment' =&gt; Array('status' =&gt; 'No response from the server.'));
                      }
                      else{
                          return $response_obj;
                      }
  </code></pre>
  
  <p>But When I am running this code on my localhost then I am getting the result properly.</p>
  
  <p>But when I am running this on my server (i.e. 000webhost.com) but getting error :</p>
  
  <pre><code>Warning:  curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/a2963438/public_html/wp-content/plugins/instamojo-register/imojoregister_shortcode.php on line 18
  </code></pre>
  
  <p>I am using free account of 000webhost.com So I am unable to enable safe_mode or edit any <code>php.ini</code>.</p>
  
  <p>So I want to ask that is there any other method to achieve the response of this url ?</p>