<?php
$top = "../top.txt";
$middle = "../middle.txt";
$bottom = "../bottom.txt";
$end = "/st.txt";
$data = "/dt.txt";
$handle1 = fopen($top, "r");
$contents1 = fread($handle1, filesize($top));
fclose($handle1);
$handle2 = fopen($end, "r");
$contents2 = fread($handle2, filesize($end));
fclose($handle2);
$handle3 = fopen($middle, "r");
$contents3 = fread($handle3, filesize($middle));
fclose($handle3);
$handle4 = fopen($data, "r");
$contents4 = fread($handle4, filesize($data));
fclose($handle4);
$handle5 = fopen($bottom, "r");
$contents5 = fread($handle5, filesize($bottom));
fclose($handle5);
echo $contents1;
echo $contents2;
echo $contents3;
echo $contents4;
echo $contents5;
?>
我对它们中的每一个都有这些错误:
警告:fopen(../top.txt)[function.fopen]:打开流失败:没有这样的文件或目录
警告:filesize() [function.filesize]: stat failed for ../top.txt
警告:fread():提供的参数不是有效的流资源
警告:fclose():提供的参数不是有效的流资源
所有文件和文件夹中的 CHMOD 并设置为 777
所有文件都存在于服务器上
PHP5安装在服务器上
我究竟做错了什么?