Php-scandir () Error

Source: Internet
Author: User

L Linux under Vim/usr/local/php/etc/php.in

L Direct Slash Find/disable_functions enter

L PRESS the I key

L Remove Scandir

L Press ESC, enter wq! Save Carriage return q! Yes No save exit Lnmp Reestart Restart

==========================

Install thinkphp times Scandir () has been disabled for security reasons

Because the Scandir function inside PHP is disabled.

Workaround:

Open php.ini (path:/usr/local/php/etc/php.ini) and find this line:

Disable_functions = Scandir,passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,

Proc_get_statu,ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,

Readlink,symlink,popepassthru,stream_socket_server,fsocket,fsockopen

Remove Scandir Save and restart PHP-FPM.

Many function problems, it is possible that PHP disabled, we need to remove the time, in order to secure as little as possible to open!

Php-scandir () Error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.