回 帖 发 新 帖 刷新版面

主题:谁能帮我把以下的PHP代码改成ASP的呢!谢谢!

谁能帮我把以下的PHP代码改成ASP的呢!谢谢!

代码一

<?php

echo $_SERVER["HTTP_X_UP_CALLING_LINE_ID"];

?>

代码二

<?php
if(!headers_sent()) {
header ("Content-type: text/vnd.wap.wml; charset=UTF-8");
}
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"\n'>http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
echo "<wml>\n";
echo "\t<card id=\"info\" title=\"标题\">\n";
echo "\t\t<p align=\"center\">".$_SERVER["HTTP_X_UP_CALLING_LINE_ID"]."</p>\n";
echo "\t</card>\n";
echo "</wml>\n";
?>

代码三

<?php
if(!headers_sent()) {
header ("Content-type: text/vnd.wap.wml; charset=UTF-8");
}
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"\n'>http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
echo "<wml>\n";
echo "\t<card id=\"info\" ontimer=\"http://fbi.yywap.com\" title=\"Mobile Number\">\n";
echo "\t\t<timer value=\"30\"/>\n";
echo "\t\t<p align=\"center\">".$_SERVER["HTTP_X_UP_CALLING_LINE_ID"]."</p>\n";
echo "\t</card>\n";
echo "</wml>\n";
?>

代码四
<?php
if(isset($_SERVER["HTTP_X_UP_CALLING_LINE_ID"])) {
if(!headers_sent()) {
  header ("Content-type: text/vnd.wap.wml; charset=UTF-8");
}
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"\n'>http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
echo "<wml>\n";
echo "\t<card id=\"info\" ontimer=\"http://fbi.yywap.com\" title=\"Welcome to free wap.3Gvip.com\">\n";
echo "\t\t<timer value=\"30\"/>\n";
echo "\t\t<p align=\"center\">".$_SERVER["HTTP_X_UP_CALLING_LINE_ID"]."</p>\n";
echo "\t</card>\n";
echo "</wml>\n";
}
else {
header ("Location: http://www.3gvip.com/logo/gprs.htm");
}
?>

回复列表 (共5个回复)

沙发

各位大哥能帮我改改么

板凳

顶~~~

3 楼

期待强人...

4 楼

这个帖子应该发到asp版

5 楼

1.
php:
echo $_SERVER["HTTP_X_UP_CALLING_LINE_ID"];
Asp:
Response.Write Request.ServerVariables("HTTP_X_UP_CALLING_LINE_ID")
2.
Php:
header ("Content-type: text/vnd.wap.wml; charset=UTF-8");
}
Asp:
Response.Charset="UTF-8"
Response.ContentType="text/vnd.wap.wml" '这个也许要改.HTML也可以实现.感觉你Asp.php都不会的说
3.
Php:
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
Asp:
Response.Write "<xml version=""1.0"" encoding=""UTF-8"">"& vbcrlf
4.
Php:
header ("Location:http://www.3gvip.com/logo/gprs.htm";);
Asp:
Response.Redirect "http://www.3gvip.com/logo/gprs.htm"


手写的~可能有拼写错误.

我来回复

您尚未登录,请登录后再回复。点此登录或注册