Home > Backend Development > PHP Problem > How to add environment variables in php

How to add environment variables in php

王林
Release: 2023-02-24 17:44:01
Original
8850 people have browsed it

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"
Copy after login

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
Copy after login

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!

Related labels:
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