Daily Archives: 2011年06月25日

godaddy空间支持zend_optimizer和pathinfo的设置方法

支持zend_optimizer的修改方法
打开html目录php.ini文件 去掉以下信息前面的;
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so
保存上传即可。
支持pathinfo修改方法,在php.ini中增加以下信息
cgi.fix_pathinfo = On
#若你使用的php5.x版本,则将php.ini改名为php5.ini
若你的空间不存在,php.ini文件,新建一个,将以下内容粘贴进去即可。
cgi.fix_pathinfo = On

register_globals = on
allow_url_fopen = on

expose_php = on
max_input_time = 60
variables_order = “EGPCS”
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = “a=href,area=href,frame=src,input=src,form=,fieldset=”

; Only uncomment zend optimizer lines if your application requires Zend Optimizer support
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so
; — Be very careful to not to disable a function which might be needed!
; — Uncomment the following lines to increase the security of your PHP site.
;disable_functions = “highlight_file,ini_alter,ini_restore,openlog,passthru,
;      phpinfo, exec, system, dl, fsockopen, set_time_limit,
;                     popen, proc_open, proc_nice,shell_exec,show_source,symlink”

cgi.fix_pathinfo = On

register_globals = onallow_url_fopen = on
expose_php = onmax_input_time = 60variables_order = “EGPCS”extension_dir = ./upload_tmp_dir = /tmpprecision = 12SMTP = relay-hosting.secureserver.neturl_rewriter.tags = “a=href,area=href,frame=src,input=src,form=,fieldset=”

; Only uncomment zend optimizer lines if your application requires Zend Optimizer support
[Zend]zend_optimizer.optimization_level=15zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.sozend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so

; — Be very careful to not to disable a function which might be needed!; — Uncomment the following lines to increase the security of your PHP site.
;disable_functions = “highlight_file,ini_alter,ini_restore,openlog,passthru,;      phpinfo, exec, system, dl, fsockopen, set_time_limit,;                     popen, proc_open, proc_nice,shell_exec,show_source,symlink”