Home  >  Article  >  Backend Development  >  How to add environment variables in php

How to add environment variables in php

王林
王林Original
2019-09-24 13:04:458774browse

How to add environment variables in php

1. In the php directory, open php.ini and remove the following comments (the semicolon in front)

; On windows:
; extension_dir = "ext"

2 , add environment variables

win7: right-click Computer-Properties-Advanced System Settings-Environment Variables-System Variables-double-click (under xp, right-click My Computer-Properties-Advanced-Environment Variables- System variables-variable path-double-click)

How to add environment variables in php

3. Test (window r enter cmd to open the window command line)

php -v

Yes Just display the php version number.

Recommended tutorial: PHP video tutorial

The above is the detailed content of How to add environment variables in php. 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