Excuse me: code level rewrite Phpinfo

Source: Internet
Author: User
Tags apd phpinfo
Ask: Code-level rewrite Phpinfo
For security reasons, you need to block or overwrite phpinfo () in some pages. But the evil of PHP does not support method coverage, covering the built-in method hints error, but ask you!
Only the local need to shield, dictation place or need to use Phpinfo debugging, and in the configuration of the modification is not too realistic, after all, some virtual host does not support the direct modification of php.ini, ask if you can directly in the PHP file block or replace the method of Phpinfo () method???

------Solution--------------------
Can be set with Ini_set ():
PHP Code
  
  " . Ini_get (' Output_handler '). "\ n";? >
------Solution--------------------
Rewriting PHP built-in functions requires PECL APD extension support

See PECL APD official online for several years has not been updated, estimated support php5.3 have problems
------Solution--------------------
You can't do this. Disable_functions settings can not be set through Ini_set settings, only directly in the php.ini file, and then PHP is certainly not supported by your default function of the replication
  • 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.