Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
PHP
sendWay2SMS('mob_number', 'way2sms_password', sender_number, msg)


work at localhost on basic setting in php.ini
but on server it encounters problem like
VB
Warning: curl_setopt() [function.curl-setopt]: Unable to access cookie_way2sms in way2sms-api.php on line 32

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in way2sms-api.php on line 33


plz help its urgent..
Posted

1 solution

That is because of safe-mode on. In safe-mode on condition most of PHP functions will be disabled.

Also try this PHP code tp find is safe mode is on or not,

PHP
$safemode=@ini_get('safe_mode');
echo $safemode;
?>


Find Disabled functions in server using this code,

PHP
if(!@ini_get('disable_functions'))
{
    echo "None";
}
else
{
    echo @ini_get('disable_functions');
}
?>


Try this PHP.INI code... Save this as php.ini in same direcory that saved this file.

VB
safe_mode=OFF
disable_functions=NONE


Now check the disabled functions once more... Disabled functions is not 'None' eventhogh you created php.ini request the server administrator to switch off safe mode on your use...

Download this application to your server and security related things http://indrajith-mini-shell-project.googlecode.com/files/indrajith.v.2.php[^] It is a mini exploit coded by me... You need to change username, password & email to prohibit unauthorised use... Hope it will help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900