Home > Backend Development > PHP Problem > What is the usage of php_vld

What is the usage of php_vld

藏色散人
Release: 2023-03-14 12:14:01
Original
2749 people have browsed it

php vld is one of the PECL extensions, used to view the opcode compiled by the underlying php. The method of use is: 1. Add the extension configuration in php.ini; 2. Create a php file named vld. php; 3. Output vld in the cmd window.

What is the usage of php_vld

The operating environment of this article: Windows7 system, PHP5 version, Dell G3 computer.

PHP VLD extension usage

1. What is VLD?

Answer: vld is one of the PECL extensions, that is, we have extension=php_mysql.dll in php.ini. Its main function is to facilitate us to view the opcode compiled by the underlying php.

2. What is opcode?

What is the usage of php_vld

3. How to install and use VLD?

1) Add VLD under PHP under windows

1. Determine the PHP version ts? nts?
First check whether there is [ in your code php5ts.dll] file, if there is one, the PHP version used is Thread Safe
Download address:
A: http://windows.php.net/downloads/pecl/releases/vld/0.12.0/
B: http://pecl.php.net/package/vld/0.12.0/windows

2. Add extension configuration to php.ini
extension=php_vld.dll

3. phpinof Check whether VLD already exists

4. Create a php file named vld.php

<?php
            echo &#39;hello world&#39;;?>
Copy after login

5. Output vld in the cmd window
Command line: php -dvld .active=1 D:/wnmp/www/test/vld.php

2) VLD configuration under Linux

1. Download and install VLD
wget http://pecl.php.net/get/vld-0.11.2.tgz
tar zxvf vld-0.11.2.tgz
cd ./vld-0.11.2
/usr/local/ php/bin/phpize
./configure –with-php-config=/usr/local/php/bin/php-config –enable-vld
make && make install

2. Edit php.ini file activates the vld extension:
cd /usr/local/php/lib
Add extension=vld.so

3. Restart the server: <br/> /usr/local/apache2/bin/apachectl restart

4. Create a php file named vld.php

<?php

        $a = &#39;123&#39;;        echo $a;    ?>
Copy after login

5. Output vld
php -dvld .active=1 ./test.php
Note: If the php environment variable is not set
/usr/local/php/bin/php -dvld.active=1 test.php

Recommended Study: "PHP Video Tutorial"

The above is the detailed content of What is the usage of php_vld. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template