无法使用readdir()函数

浏览:932 发布日期:2014/04/24 分类:求助交流
在控制器方法中使用readdir(),就会报错,内存耗尽
不能用readdir吗,tp用什么方法来操作文件,目录?

( ! ) Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 40961 bytes) in C:\wamp\www\weisite\ThinkPHP\Common\common.php on line 744
Call Stack
# Time Memory Function Location
1 0.0005 673120 {main}( ) ..\index.php:0
2 0.0009 698384 include( 'C:\wamp\www\weisite\ThinkPHP\ThinkPHP.php' ) ..\index.php:6
3 0.0019 854944 require( 'C:\wamp\www\weisite\ThinkPHP\Common\runtime.php' ) ..\ThinkPHP.php:34
4 0.0061 1375544 Think::start( ) ..\runtime.php:242
5 0.0142 2384312 App::run( ) ..\Think.class.php:39
6 0.0173 2553704 App::exec( ) ..\App.class.php:181
7 0.0211 2753040 ReflectionMethod->invoke( ) ..\App.class.php:145
8 0.0211 2753072 AlbumAction->album( ) ..\App.class.php:145
9 7.7729 134121176 readdir ( ) ..\AlbumAction.class.php:27
10 7.7729 134122344 Think::appError( ) ..\AlbumAction.class.php:27
11 7.7729 134122704 trace( ) ..\Think.class.php:293
12 7.7729 134122880 print_r ( ) ..\common.php:744
最佳答案
评论( 相关
后面还有条评论,点击查看>>