原先都是好的,突然间就无法使用了。报错如下
(php2html)是生成静态页面的函数
A PHP Error was encounteredSeverity: WarningMessage: file_get_contents(http://localhost/ci_test073/index.php/printPage/tree) [function.file-get-contents]: failed to open stream: ������ӷ���һ��ʱ���û����ȷ�
(php2html)是生成静态页面的函数
A PHP Error was encounteredSeverity: WarningMessage: file_get_contents(http://localhost/ci_test073/index.php/printPage/tree) [function.file-get-contents]: failed to open stream: ������ӷ���һ��ʱ���û����ȷ�
看看是否有操作权限、文件路径是否对应。
直接用浏览器打开“http://localhost/ci_test073/index.php/printPage/tree”是可以的。
D盘已经设置了everyone权限,还是无法使用!
在 Windows 平台上,要小心转义文件路径中的每个反斜线,或者用斜线。
<?php
$handle = fopen("c:\\data\\info.txt", "r");
?>