exec()
更换
--exclude=\"title.txt\"|
已被禁用出于安全原因,您的服务器上时,PHP在安全模式下运行 此功能被禁用。
为了能够在PHP exec()
,
如果你的WAMP的服务器
的工作只需添加分号停止WAMP服务器 开放php.ini
文件检查disable_functions选项 评论disable_functions选项(;)disable_functions选项之前
见下图所示
; disable_functions = glob, filter_list, chown, chmod, get_current_user, php_uname, putenv, getmyuid, getmypid, dl, ini_alter, ini_restore, exec, passthru, system, popen, pclose, leak, mysql_list_dbs, listen, chgrp, disk_total_space, disk_free_space, rmdir, tmpfile, link, shell_exec, proc_open, chroot, openlog, closelog, syslog, flock, socket_create_listen, socket_accept, socket_listen, sleep, umask, set_include_path, restore_include_path, symlink, imagerotate
保存文件和 现在再次启动wamp服务器 并重试。
使用'getcwd()'检查当前工作目录。我运行你的代码,它运行良好。 – 2015-04-04 12:22:56
感谢Bart,现在可以工作。 :) – 2015-04-04 12:36:02