我要求我的托管公司安装APC以加快我的网站速度,但我现在遇到了这个问题:
Fatal error: Class 'finfo' not found in /home/mydomain/public_html/printshop/upload_1-img.php on line 30
第30行是:
$file_info = new finfo(FILEINFO_MIME);
在upload_1-img.php
我正在使用fileinfo来获取上传图像的mime类型。这对MONTHS来说非常成功,直到我昨天安装了APC。
这是我第一次使用APC,我没有太多经验。这些是我的运行时设置:
apc.cache_by_default 1
apc.canonicalize 1
apc.coredump_unmap 0
apc.enable_cli 0
apc.enabled 1
apc.file_md5 0
apc.file_update_protection 2
apc.filters
apc.gc_ttl 3600
apc.include_once_override 0
apc.lazy_classes 0
apc.lazy_functions 0
apc.max_file_size 1M
apc.mmap_file_mask /tmp/apc.GGV9Km
apc.num_files_hint 1000
apc.preload_path
apc.report_autofilter 0
apc.rfc1867 1
apc.rfc1867_freq 0
apc.rfc1867_name APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_
apc.rfc1867_ttl 3600
apc.serializer default
apc.shm_segments 1
apc.shm_size 128M
apc.shm_strings_buffer 4M
apc.slam_defense 1
apc.stat 1
apc.stat_ctime 0
apc.ttl 1800
apc.use_request_time 1
apc.user_entries_hint 4096
apc.user_ttl 1800
apc.write_lock 1