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

Started on the old forum in February 2012 · view the original in the archive · old links redirect here

#function.file-error

4 replies · 434 views · started 14 years ago · 1 min read

3 participants
kurmi12 Newbie · 4 posts #5

softwarefreak wrote: HI, read this

https://bugs.php.net/bug.php?id=40197

@something,On line 32 its,

file();

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
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($request, 0, strlen($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";
}  
?>

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close