How to Rectify this error!!!!! it's working fine in my pc and not in others people

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • kurmi12
    replied
    Originally posted by softwarefreak View Post
    It's hard for me to understand thing on the link given above. i m giving my code please do needful correction in it and give me plz.


    PHP Code:
    <?php
    include_once("session.php");    
    $smspinn $_REQUEST['smspinn'];
      
    if(isset(
    $smspinn)){
        
        


    $request =""//initialise the request variable
    $param['method']= "sendMessage";
    $param['send_to'] = $mobile;
    $param['msg'] = "Your Atm Pin Nos Is ".$smspinn;
    $param['userid'] = "XXXXXXX";
    $param['password'] = "XXXXXX";
    $param['v'] = "1.1";
    $param['msg_type'] = "TEXT"//Can be "FLASH”/"UNICODE_TEXT"/”BINARY”
    $param['auth_scheme'] = "PLAIN";
    //Have to URL encode the values
    foreach($param as $key=>$val) {
    $request.= $key."=".urlencode($val);
    //we have to urlencode the values
    $request.= "&";
    //append the ampersand (&) sign after each parameter/value pair

    }
    $request substr($request0strlen($request)-1);
    //remove final (&) sign from the request
     
    $url =
    "http://enterprise.smsgupshup.com/GatewayAPI/rest?".$request;

    file($url);  // line nos.32
    /*$ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $curl_scraped_page = curl_exec($ch);
    curl_close($ch);
    echo $curl_scraped_page;
    */
    echo "PIN NOS. SUCCESSFULLY SENT";
    }  
    ?>
    Last edited by kurmi12; 26.02.12, 06:24.

    Leave a comment:


  • kurmi12
    replied
    Originally posted by something else View Post
    whats on line 32 of sms-action.php?
    file($url);

    Leave a comment:


  • softwarefreak
    replied
    HI, read this



    @something,On line 32 its,
    PHP Code:
    file(); 
    Last edited by softwarefreak; 23.02.12, 19:18.

    Leave a comment:


  • something else
    replied
    whats on line 32 of sms-action.php ?

    Leave a comment:


  • How to Rectify this error!!!!! it's working fine in my pc and not in others people

    <br />
    <b>Warning</b>: file(http://enterprise.smsgupshup.com/Gat...h_scheme=PLAIN) [<a href='function.file'>function.file</a>]: failed to open stream: HTTP request failed! in <b>D:\xampp\htdocs\bankproject\bank\sms-action.php</b> on line <b>32</b><br />

    I used both xampp and wamp server earlier it was working but now it's not working in other pc.. in my pc everthing is fine
Working...
X