首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如果在打开时出现这样的php文件,该如何克服?

问如果在打开时出现这样的php文件,该如何克服?
EN

Stack Overflow用户
提问于 2018-05-14 16:37:03
回答 1查看 59关注 0票数 0

我的vps ubuntu14.04.5LTS和PHP版本7.1.17-1 + ubuntu14.04.1 + deb.sury.org +1

如果我打开我的网页链接,它会显示如下:

代码语言:javascript
复制
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
*/
define('WP_USE_THEMES', false);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

​

这是怎么回事?或者补充更少的支持php的补充

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-05-14 16:58:40

如果您直接运行该文件,php将显示您需要在本地服务器/联机服务器上运行php文件,那么只有它将执行应该做的事情,否则它将显示php代码。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50335130

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档