0
文件或的file_get_contents不讀此示例文件正確文件和的file_get_contents竊聽閱讀簡單的文件
<?php
?>
這是測試程序
$flines=file('../include/test.php');
echo '<pre>';
print_r($flines);
echo '</pre>';
for($i=0;$i<count($flines);$i++) {
echo("$i:".$flines[$i]."\n<br>");
}
echo "File Get Contents";
echo(file_get_contents('../include/test.php'));
這是輸出
Array (
[0] => ?>
)
0:1:?>
File Get Contents
基本上它跳過由於某種原因,PHP的聲明... ...和文件是空
此外 每刪除課程的開放<
當
當然,它這是錯誤的呼應。爲你+1。 – millebii 2011-02-09 22:40:13