資源簡介
unity服務器接收代碼
unity服務器接收代碼
unity服務器接收代碼unity服務器接收代碼
unity服務器接收代碼
代碼片段和文件信息
lns=“http://www.w3.org/1999/xhtml“>
ta?http-equiv=“Content-Type“?content=“text/html;?charset=utf-8“?/>
tle>無標題文檔 tle>
function?Create($myFile)
{
header(‘content-type:text/html;?charset=utf-8‘);//防止生成的頁面亂碼
$title?=“src=“.$myFile;?//定義變量
echo?$title;
$temp_file?=?“temp.html“;?//臨時文件,也可以是模板文件
$dest_file?=?“dest_page.html“;?//生成的目標頁面
$fp?=?fopen($temp_file?“r“);?//只讀打開模板
$str?=?fread($fp?filesize($temp_file));//讀取模板中內容
$str?=?str_replace(“[src=]“?$title?$str);//替換內容
fclose($fp);
$handle?=?fopen($dest_file?“w“);?//寫入方式打開需要寫入的文件
fwrite($handle?$str);?//把剛才替換的內容寫進生成的HTML文件
fclose($handle);/
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-12-02?23:37??UpLoad\
?????文件????????1337??2014-12-02?18:40??UpLoad\dest_page.html
?????文件????????1324??2014-12-02?18:35??UpLoad\temp.html
?????文件????????1693??2014-12-02?18:40??UpLoad\UnityUpload.php
?????目錄???????????0??2014-12-02?23:22??UpLoad\upload\
?????文件?????????605??2014-12-01?12:30??UpLoad\Upload.html
?????文件????????4860??2014-12-02?15:02??UpLoad\upload\pic1.png
?????文件????????4860??2014-12-02?18:40??UpLoad\upload\pic2.png
- 上一篇:rose2007破解工具 license.upd
- 下一篇:JSONView2019
評論
共有 條評論