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

AI Hentai Generator
Generate AI Hentai for free.

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

The way to update ByBit exchanges varies by platform and device: Mobile: Check for updates and install in the app store. Desktop Client: Check for updates in the Help menu and install automatically. Web page: You need to manually access the official website for updates. Failure to update the exchange can lead to security vulnerabilities, functional limitations, compatibility issues and reduced transaction execution efficiency.

DeepSeek is a powerful intelligent search and analysis tool that provides two access methods: web version and official website. The web version is convenient and efficient, and can be used without installation; the official website provides comprehensive product information, download resources and support services. Whether individuals or corporate users, they can easily obtain and analyze massive data through DeepSeek to improve work efficiency, assist decision-making and promote innovation.

Detailed explanation and installation guide for PiNetwork nodes This article will introduce the PiNetwork ecosystem in detail - Pi nodes, a key role in the PiNetwork ecosystem, and provide complete steps for installation and configuration. After the launch of the PiNetwork blockchain test network, Pi nodes have become an important part of many pioneers actively participating in the testing, preparing for the upcoming main network release. If you don’t know PiNetwork yet, please refer to what is Picoin? What is the price for listing? Pi usage, mining and security analysis. What is PiNetwork? The PiNetwork project started in 2019 and owns its exclusive cryptocurrency Pi Coin. The project aims to create a one that everyone can participate

There are many ways to install DeepSeek, including: compile from source (for experienced developers) using precompiled packages (for Windows users) using Docker containers (for most convenient, no need to worry about compatibility) No matter which method you choose, Please read the official documents carefully and prepare them fully to avoid unnecessary trouble.

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

The official website entrance of the Coinsuper Exchange: https://www.coinsuper.com. The client download channels are: Windows client, macOS client, and mobile (iOS/Android). Registration requires an email, mobile phone number and password, and you need to complete real-name authentication before you can trade. The platform provides a variety of digital asset transactions, including Bitcoin, Ethereum, etc., with the transaction fee rate of 0.1% for both orders and acceptors. Security safeguards include cold wallet storage, dual-factor verification, anti-money laundering and anti-terrorism financing measures, and with security public

Ouyi OKX, the world's leading digital asset exchange, has now launched an official installation package to provide a safe and convenient trading experience. The OKX installation package of Ouyi does not need to be accessed through a browser. It can directly install independent applications on the device, creating a stable and efficient trading platform for users. The installation process is simple and easy to understand. Users only need to download the latest version of the installation package and follow the prompts to complete the installation step by step.
