php显示源码问题 路径都没有错,内容也会显示,但是显示的是源码 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用的apache ? php 的解析模块没有加载正确 你的php没有解释哦。看看是不是apache没有安装php 竟然没有安装PHP模拟环境建议安装 apmserv 或 wamp 没有问题呀$url = 'http://121.40.216.219';print_r(get_headers($url));Array( [0] => HTTP/1.1 200 OK [1] => Cache-Control: private [2] => Pragma: no-cache [3] => Content-Type: text/html; charset=utf-8 [4] => Expires: Thu, 19 Nov 1981 08:52:00 GMT [5] => Vary: Accept-Encoding [6] => Server: Microsoft-IIS/8.5 [7] => Set-Cookie: PHPSESSID=t9fhf4vdolsrbvipik4rg0pv77; path=/ [8] => X-Powered-By: ThinkPHP [9] => Date: Mon, 11 May 2015 07:14:43 GMT [10] => Connection: close [11] => Content-Length: 29319)echo file_get_contents("$url/install/index.php");<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title> 小猪PigCms微信营销平台V7.8加盟版 安装程序</title><meta http-equiv="X-UA-Compatible" content="IE=7" />......可能他自己弄好了吧另外请楼上的朋友们注意了:如果没有配置 php 运行环境的话,访问时是文件下载,而不是源码 php没有被解析,看一下是不是<?php前面有东西 UCENTER可以跨域么 關於遍歷文件的問題 php获取提交页面的cookie如何获取啊 eval函数的用法??? 请问一个JS问题-代码贴上 准备应聘LAMP技术支持,需要准备些什么知识点? 请教大神:如何给word增加水印 中国图书网的网站无法访问 ECSHOP的QQ登录问题 有什么方法可以抓取今日头条的文章内容,用PHP 大神们帮我看看这个验证码为什么取到的值是空值????? 抢激活码并发问题。。
看看是不是apache没有安装php
建议安装 apmserv 或 wamp
print_r(get_headers($url));
Array
(
[0] => HTTP/1.1 200 OK
[1] => Cache-Control: private
[2] => Pragma: no-cache
[3] => Content-Type: text/html; charset=utf-8
[4] => Expires: Thu, 19 Nov 1981 08:52:00 GMT
[5] => Vary: Accept-Encoding
[6] => Server: Microsoft-IIS/8.5
[7] => Set-Cookie: PHPSESSID=t9fhf4vdolsrbvipik4rg0pv77; path=/
[8] => X-Powered-By: ThinkPHP
[9] => Date: Mon, 11 May 2015 07:14:43 GMT
[10] => Connection: close
[11] => Content-Length: 29319
)
echo file_get_contents("$url/install/index.php");<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> 小猪PigCms微信营销平台V7.8加盟版 安装程序</title>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
......
可能他自己弄好了吧另外请楼上的朋友们注意了:如果没有配置 php 运行环境的话,访问时是文件下载,而不是源码