我的PHP在命令行下无法运行EXEC()函数
我写了一个脚本,想执行在命令行下面,并且需要调用WINDOWS的一些命令.
我的环境是windows2003+php5
运行时没有任何返回,换成system()函数也一样.没有任何返回.
我查了一些资料,说是运行在安全模式下,这些函数被拒绝了.
而我的PHP.INI中明明是关闭了安全模式的.
;
; Safe Mode
;
safe_mode = off
; By default, Safe Mode does a UID compare check
when
; opening files. If you want to relax this to a
GID compare,
; then turn on safe_mode_gid.
safe_mode_gid = Off
; When safe_mode is on, UID/GID checks are
bypassed when
; including files from this directory and its
subdirectories.
; (directory must also be in include_path or full
path must
; be used when including)
safe_mode_include_dir =
; When safe_mode is on, only executables located
in the safe_mode_exec_dir
; will be allowed to be executed via the exec
family of functions.
safe_mode_exec_dir =
请问为什么在无法执行EXEC函数?
应该怎么做才行?
问题点数:20、回复次数:1Top
1 楼zeroleonhart(Strong Point:Algorithm)回复于 2006-07-04 15:14:17 得分 0
debug the php codes first
make sure you return some words
Top




