主题:谁能帮我把以下的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");
}
?>
代码一
<?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");
}
?>