最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

file_get_contents()函數(shù)為空

if(isset($_REQUEST['act'])){
????$act?=?$_REQUEST['act'];
}
if(isset($_REQUEST['filename'])){
????$filename?=?$_REQUEST['filename'];
}
$redirect?=?"index.php?path={$path}";
if(isset($act)){
????if($act?==?"createFile"){
????????//創(chuàng)建文件
????????$mes?=?createFile($path."/".$filename);
????????alertMes($mes,$redirect);
????}elseif($act?==?"showContent"){
????????//查看文件內(nèi)容
????????$content?=?file_get_contents($filename);
????????highlight_string($content);
????}
}
————————————————————
<td>
<a?href="index.php?act=showContent&path=<?php?echo?$path;?>&fileName=<?php?echo?$path."/".$val;?>"><img?src="images/show.png"?alt=""?title="查看"/></a>
<a?href="index.php?act=editContent&path=<?php?echo?$path;?>&fileName=<?php?echo?$path."/".$val;?>"><img?src="images/edit.png"?alt=""?title="修改"/></a>
<a?href="index.php?act=renameFile&path=<?php?echo?$path;?>&fileName=<?php?echo?$path."/".$val;?>"><img?src="images/rename.png"?alt=""?title="重命名"/></a>
<a?href="index.php?act=copyFile&path=<?php?echo?$path;?>&fileName=<?php?echo?$path."/".$val;?>"><img?src="images/copy.png"?alt=""?title="復(fù)制"/></a>
<a?href="index.php?act=moveFile&path=<?php?echo?$path;?>&fileName=<?php?echo?$path."/".$val;?>"><img?src="images/cut.png"?alt=""?title="剪切"/></a>
<a?href="#"?onclick="delFile('<?php?echo?$path;?>','<?php?echo?$path."/".$val;?>')"><img?src="images/delete.png"?alt=""?title="刪除"/></a>
<a?href="index.php?act=downFile&path=<?php?echo?$path;?>&fileName=<?php?echo?$path."/".$val;?>"><img?src="images/download.png"?alt=""?title="下載"/></a>
</td>

php.ini配置:allow_url_fopen = On ,并且沒(méi)有禁用此函數(shù)。

但是就是無(wú)法使用。提示:

Notice: Undefined variable: filename in

Warning: file_get_contents(): Filename cannot be empty in


正在回答

1 回答

ok,自己解決了。(感覺(jué)自己好蠢…)

1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

lhb0268

怎么解決的哈
2017-03-31 回復(fù) 有任何疑惑可以回復(fù)我~
#2

A蔡蔡8893291 回復(fù) lhb0268

查看你的A LINK有沒(méi)寫(xiě)錯(cuò) <a href="index.php?act=showContent&path=<?php echo $path;?>&filename=<?php echo $p; ?>">
2021-08-18 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
WEB在線文件管理器
  • 參與學(xué)習(xí)       36248    人
  • 解答問(wèn)題       346    個(gè)

通過(guò)本課程文件目錄函數(shù)庫(kù)的學(xué)習(xí),讓你掌握文件、目錄函數(shù)庫(kù)的應(yīng)用

進(jìn)入課程

file_get_contents()函數(shù)為空

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)