Resolve PHP Scandir () exception return empty problem

Source: Internet
Author: User
Tags fpm

scandir () Scan folder, return value exception, because the Scandir function is disabled, the following method to open the

    1. /p>

    2.  

    3. Li class= "exp-content-list" >

      solution:  Open php.ini ( Path: Linux: With command locate  php.ini), 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,

      remove Scandir save and PHP-FPM.  


If the Linux system is installed LNMP can use the command service PHP-FPM Restart Restart service to take effect

This article is from the "Liu Bofang blog" blog, make sure to keep this source http://liubofang.blog.51cto.com/11162557/1856147

Resolve PHP Scandir () exception return empty problem

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.