|
发表于 2012-11-28 11:12:43
|
显示全部楼层
有可能是权限设置有问题,也会出现。我用apache,提示错误:- Allowed memory size of 536870912 bytes exhausted (tried to allocate 79 bytes) in /source/function/function_core.php on line 1738
复制代码 。然后我找到那个代码发现:- function dmkdir($dir, $mode = 0777, $makeindex = TRUE){
- if(!is_dir($dir)) {
- dmkdir(dirname($dir));
- @mkdir($dir, $mode);
- if(!empty($makeindex)) {
- @touch($dir.'/index.html'); @chmod($dir.'/index.html', 0777);
- }
- }
- return true;
- }
复制代码 我就怀疑是没有777权限问题,然后修复一下权限就好了。但,好像权限老是自动还原。神马情况。 |
|