VML绘图板④简化的服务器端--server.php、server.asp
时间:2007-02-17 来源:PHP爱好者
服务器端
************
* server.php
************
<?php
$s = $HTTP_RAW_POST_DATA;
$t = gettimeofday();
$n = $t[sec].$t[usec];
$filename = "vml/" .$n. ".txt";
$fp = fopen($filename,"w");
fwrite($fp,$s);
fclose($fp);
echo $s;
?>
************
* server.asp
************
<%@ Language=VBscript %>
<%
Response.expires=-1
dim xmlrec
set xmlrec=server.CreateObject("microsoft.xmldom")
xmlrec.async=false
xmlrec.load(Request)
xmlrec.save Server.MapPath(".")&"xxxx.xml"
%>
php爱好者站 http://www.phpfans.net 为phper提供一切资讯.
************
* server.php
************
<?php
$s = $HTTP_RAW_POST_DATA;
$t = gettimeofday();
$n = $t[sec].$t[usec];
$filename = "vml/" .$n. ".txt";
$fp = fopen($filename,"w");
fwrite($fp,$s);
fclose($fp);
echo $s;
?>
************
* server.asp
************
<%@ Language=VBscript %>
<%
Response.expires=-1
dim xmlrec
set xmlrec=server.CreateObject("microsoft.xmldom")
xmlrec.async=false
xmlrec.load(Request)
xmlrec.save Server.MapPath(".")&"xxxx.xml"
%>
php爱好者站 http://www.phpfans.net 为phper提供一切资讯.
相关阅读 更多 +