Windows下的PHP 5.3.x安装 Zend Guard Loader教程,5.3.xzend
Windows下的PHP 5.3.x安装 Zend Guard Loader教程,5.3.xzend
从PHP5.3开始如果要支持ZendGuard加密的PHP代码,必须安装Zend Guard Loader,老的zend optimizer将不被支持。另外,Zend Guard Loader 仅支持 Non Thread Safe 版本的PHP。
下载扩展:
http://www.zend.com/en/products/guard/downloads
安装扩展:
在php.ini中追加:
复制代码 代码如下:
[Zend.loader]
zend_extension='D:/Program Files/PHP-5.3.29/ZendLoader.dll'
zend_loader.enable=1
zend_loader.disable_licensing=1
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
重启Web服务器(IIS/Nginx)
运行phpinfo(),会看到如下信息:
复制代码 代码如下:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
有两种方法在 Windows 下安装 PHP:手工安装或者使用安装程序安装。
据PHP官方手册上称安装 PHP 最好的选择是手工安装。
在手工安装中安装 PHP 最好的方式便是将所有 PHP 有关的文件都放入同一目录,并在系统的 PATH 环境变量中设置此目录。
PHP 的手工安装程序可以在 www.php.net/downloads.php 下载。点击 PHP 5.2.5 zip package 即可下载。
下面介绍PHP手工安装步骤:
第一步:我是直接解压缩放到d盘PHP目录下了,这样查找文件会方便许多。解压缩完后我的PHP目录就是d:\PHP。
第二步:将 PHP 目录添加到 PATH 环境变量中,
(我的电脑->属性->高级->环境变量->系统变量->找到 path 这个变量,点击编辑在后面加入 如 d:\php; 就是你安装PHP的路径 注意每一个变量之间有一个“;”半角的分号分隔,如果前面的没有分号请大家加上去。->一路确定)
第三步:为 PHP 设置一个有效的配置文件,php.ini。
在 ZIP 包中有两个 ini 文件,php.ini-dist 和 php.ini-recommended。
建议使用 php.ini-recommended,因为在该文件中优化了性能和安全。
将D:\PHP\php.ini-recommended 重命名为 D:\PHP\php.ini 。
再用记事本打开 php.ini ,查找register_globals = Off,把off改成On ,此处一般能解决运行安装论坛时出现空白的问题。
再查找short_open_tag = Off,把off改成On 。
再查找extension_dir = "./" 改为 extension_dir = "d:\PHP\ext"
(指定动态连接库的目录,php5和php4不同的地方就是它的动态连接库目录变了,这在它的文档结构里有详细的说明)
然后再查找;extension=php_mbstring.dll,把下面几句前面的分号去掉
extension=php_mbstring.dll 这个不选的话用phpMyAdmin会出现红色提示
extension=php_gd2.dll 支持GD库的,一般要滴
extension=php_mysql.dll 支持MySQL的
接下来修改了一些文件上传以及内存使用最大限制:
memory_limit = 20M 内存容量
post_max_size = 20M 闪存容量
upload_max_filesize = 20M 附件容量
以上3个地方请大家根据自己的实际需要修改
别的就没改什么了,保存后退出。
接下来要使 php.ini 文件在 Windows 下被 PHP 所用(这一点很重要,否则你的php.ini就不会被系统识别并加载),只需要添加个PHPRC环境变量,步骤如下
我的电脑-> 属性 -> 高级 -> 环境变量 -> 系统变量 -> 在“系统变量”栏中
点击“新建”按钮 ->......余下全文>>
你说的Zend guard loader5.5是从www.zend.com/en/products/guard/downloads下载的吧,我的也是,我可以安装呀,确实需要非线程安全版本的PHP才能安装 zend guard loader,我亲自试过的。好像在网上看到过安全版本PHP安装方法,不过配置不是下面的了。下面的是php5.3 nts的,
把ZendLoader.dll,放到c:\php\ext 文件夹里面,我的php是在c:\php,php.ini 末尾加入下面的,
[Zend.loader]
zend_loader.enable=1
zend_loader.disable_licensing=1
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
zend_extension="C:\php\ext\ZendLoader.dll"
重启IIS应该就可以了。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

PHP is used to build dynamic websites, and its core functions include: 1. Generate dynamic content and generate web pages in real time by connecting with the database; 2. Process user interaction and form submissions, verify inputs and respond to operations; 3. Manage sessions and user authentication to provide a personalized experience; 4. Optimize performance and follow best practices to improve website efficiency and security.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.

PHP uses MySQLi and PDO extensions to interact in database operations and server-side logic processing, and processes server-side logic through functions such as session management. 1) Use MySQLi or PDO to connect to the database and execute SQL queries. 2) Handle HTTP requests and user status through session management and other functions. 3) Use transactions to ensure the atomicity of database operations. 4) Prevent SQL injection, use exception handling and closing connections for debugging. 5) Optimize performance through indexing and cache, write highly readable code and perform error handling.

The core benefits of PHP include ease of learning, strong web development support, rich libraries and frameworks, high performance and scalability, cross-platform compatibility, and cost-effectiveness. 1) Easy to learn and use, suitable for beginners; 2) Good integration with web servers and supports multiple databases; 3) Have powerful frameworks such as Laravel; 4) High performance can be achieved through optimization; 5) Support multiple operating systems; 6) Open source to reduce development costs.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.
