search
HomePHP FrameworkThinkPHPYaconf installation and easy use

The previous article talked about understanding Yaconf. If you see this article, you can check it out in the column. To learn something, you must first know what it can do, and then learn it, or blindly There is no point in studying.

4. Install Yaconf on the window

Due to advertising, there is no download here For the address, you can directly search for Yaconf and download the first one.

After entering, click on the DLL at the back and select the corresponding version

How to choose the applicable version here, please see below

How to judge which version is suitable For yourself, just follow the places I circled to download. Be sure to download the corresponding version here, otherwise it will not work.

Then place this file in the PHP extension directory. This directory is based on the PHP version you are using. The one used here is PHP7.3Then modify the configuration file, The directory location of the configuration file must be created, and it can be placed there

<span style="display: block; background: url(https://my-wechat.mdnice.com/point.png); height: 30px; width: 100%; background-size: 40px; background-repeat: no-repeat; background-color: #282c34; margin-bottom: -7px; border-radius: 5px; background-position: 10px 10px;"></span><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; font-size: 12px; -webkit-overflow-scrolling: touch; padding-top: 15px; background: #282c34; border-radius: 5px;">extension=php_yaconf.dll<br/><br/>[yaconf]<br/>yaconf.directory=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"D:\phpstudy_pro\WWW\yaconf"</span><br/>yaconf.check_delay=60<br/></code>

Restart the environment and check it and it will be ok.

One thing to note here is that when copying, there will inevitably be some spaces and other messy things. Remember to delete them, otherwise you will know what unspeakable weakness is.

5. Use Yaconf on the window

At this time, create it directly in the Yaconf directory An ini file, and write the following content

The controller reads directly

The printed result is also the expected value

If the configuration file is changed, just restart ngixn directly

Another interface provided by Yaconf is\Yaconf::has

The above is the use of Yaconf on window, and it is relatively simple to use.

One thing to note here is that after modifying the Yaconf configuration file, we need to restart the web server.

That’s all for the configuration of Yaconf. I didn’t do in-depth research on yaconf, just to avoid being troubled when learning the framework.

Keep learning and blogging , Persistence in sharing is the belief that Kaka has always adhered to since its beginning. I hope that Kaka’s articles on the huge Internet can bring you a little bit of help. I’m Kaka, see you next time.

The above is the detailed content of Yaconf installation and easy use. For more information, please follow other related articles on the PHP Chinese website!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Article

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools