查看文件: posttest.php
大小: 991 字节
类型: application/octet-stream
posttest <?php // my url=https://q.yuxingo.com.tw/billtest/posttest.php //www2/skybni/billupload/ /www/yuxingo/billtest/post $logpath="/www2/skybni/billupload/log.txt"; // $logpath="/www2/skybni/upimg/log.txt"; $fp = fopen($logpath, "a"); $ref=isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:""; fwrite($fp,"start log ".$ref." response " .date('Y-m-d H:i:s')."\r\n"); // fwrite($fp,$response."\r\n"); ?> <? /* $a=count($_POST); if($a>0){ foreach($_POST as $key=>$value){ // echo "$key=$value"; $s= urldecode($value); fwrite($fp,"$key=$s"."\r\n"); } } */ $a=count($_GET); if($a>0){ foreach($_GET as $key=>$value){ // echo "$key=$value"; $s= urldecode($value); fwrite($fp,"$key=$s"."\r\n"); } } fwrite($fp,"======= upload from posttest.php ================="."\r\n"); fclose($fp); echo "OK1" ; ?>
保存
取消
返回文件列表