Vi/etc/php.ini #编辑修改
@ini_set (' Memory_limit ', ' 64M '); /* Script Max memory size */
@ini_set (' max_execution_time ', ' 15 '); /* Maximum execution time of script */
@ini_set (' post_max_size ', ' 12M '); /* Maximum upload size for form */
@ini_set (' upload_max_filesize ', ' 2M '); /* Maximum upload size for individual files */
@ini_set (' Session.name ', ' Anhuizhaopin_sessionid '); /* SessionID's name */
@ini_set (' session.cookie_httponly ', ' 1 '); /* SessionID Add httponly Property */
@ini_set (' session.use_trans_sid ', ' 0 '); /* Do not try to get sessionid from Elsewhere */
@ini_set (' session.use_cookies ', ' 1 '); /* Use cookies to pass SessionID */
@ini_set (' Session.auto_start ', ' 0 '); /* Do not start session processing automatically */
@ini_set (' session.cookie_lifetime ', ' 3600 '); /* Life cycle of Session */
@ini_set (' session.gc_maxlifetime ', ' 3600 '); /* GC Time */
@ini_set (' Session.cache_expire ', ' 180 '); /* Client Cache time */
@ini_set (' file_uploads ', ' 1 '); /* Whether to enable uploading of files */
@ini_set (' Upload_tmp_dir ', ' f:\\tmp\\ '); /* Upload File cache directory */
Change the php.ini configuration