Use PHP code to determine if the Web server supports Zend Guard Loader encryption parsing

Source: Internet
Author: User

php5.3 version no longer supports Zendoptimizer, changed to a more advanced Zend Guard loader to determine if the operating environment supports Zend Guard Loader encryption parsing

$PHP _ver=php_version;$ZEND _ver=zend_version();if($PHP _ver< 5.3 | |Empty($ZEND _ver)){    Echo' The operating environment requires PHP5.3 or 5.4 and supports the Zend Guard loader plugin. ‘;Exit;}Else{     if( !Get_cfg_var(' zend_loader.enable ')) {Echo' Please modify the PHP configuration file [Zend.loader] section, zend_loader.enable=1 ';Exit;} }

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.