php 变量定义
<?php$m=$_GET[m];$p=$_GET[p];$to=$_GET[to];$tent=$_GET[tent];$action=$_GET[action];in...
<?php
$m=$_GET[m];
$p=$_GET[p];
$to=$_GET[to];
$tent=$_GET[tent];
$action=$_GET[action];
include "./class_fetion.php";
//new fetion class and init
$fetion = new fetion("$m","$p");
$fetion->init() or die("");
if ($action=="tel_sms")
{
$fetion->sent_sms("tel:$to", "$tent");
}
elseif ($action=="sip_sms")
{
$fetion->sent_sms('sip:'.$_GET[to].'@fetion.com.cn;p=4586', "$tent");
}
elseif ($action=="glist")
{
$friends = $fetion->get_friends_list();
}
else
{
echo "参数错误";
}
?>
本地服务器测试可以..上传到空间就显示代码错误了.
请帮我看看..
Notice: Use of undefined constant m - assumed 'm' in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 3
Notice: Use of undefined constant p - assumed 'p' in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 4
Notice: Use of undefined constant to - assumed 'to' in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 5
Notice: Undefined index: to in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 5
Notice: Use of undefined constant tent - assumed 'tent' in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 6
Notice: Undefined index: tent in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 6
Notice: Use of undefined constant action - assumed 'action' in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 7 展开
$m=$_GET[m];
$p=$_GET[p];
$to=$_GET[to];
$tent=$_GET[tent];
$action=$_GET[action];
include "./class_fetion.php";
//new fetion class and init
$fetion = new fetion("$m","$p");
$fetion->init() or die("");
if ($action=="tel_sms")
{
$fetion->sent_sms("tel:$to", "$tent");
}
elseif ($action=="sip_sms")
{
$fetion->sent_sms('sip:'.$_GET[to].'@fetion.com.cn;p=4586', "$tent");
}
elseif ($action=="glist")
{
$friends = $fetion->get_friends_list();
}
else
{
echo "参数错误";
}
?>
本地服务器测试可以..上传到空间就显示代码错误了.
请帮我看看..
Notice: Use of undefined constant m - assumed 'm' in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 3
Notice: Use of undefined constant p - assumed 'p' in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 4
Notice: Use of undefined constant to - assumed 'to' in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 5
Notice: Undefined index: to in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 5
Notice: Use of undefined constant tent - assumed 'tent' in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 6
Notice: Undefined index: tent in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 6
Notice: Use of undefined constant action - assumed 'action' in D:\userwwwroot\zhoubujin\wwwroot\ff\index.php on line 7 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询