Home > php教程 > php手册 > body text

php中如何设置短标签short

WBOY
Release: 2016-06-06 19:42:19
Original
1396 people have browsed it

我安装的是wamp环境。开始在网上搜,说应该在php.ini文件中将“short_open_tag=Off;”改为“short_open_tag=On;”,但是我找的是php目录下的php.ini配置文件,改好以后并没有起作用。 正确做法是: 在wamp/www目录下编写一个phpinfo.php文件,输出phpinfo(

             我安装的是wamp环境。开始在网上搜,说应该在php.ini文件中将“short_open_tag=Off;”改为“short_open_tag=On;”,但是我找的是php目录下的php.ini配置文件,改好以后并没有起作用。

        正确做法是:在wamp/www目录下编写一个phpinfo.php文件,输出phpinfo(),如图:

php中如何设置短标签short

        然后在浏览器网址栏中输入:localhost/phpinfo.php,回车后显示phpinfo()信息如下图所示:

php中如何设置短标签short

       

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!