注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

php 王建

php之路

 
 
 

日志

 
 

一个比较蛋疼的问题 访问php竟然弹出了个下载php的对话框  

2012-06-27 21:40:01|  分类: linux |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
我的系统是ubuntu 环境是lamp apache2 mysql5 php5.4
环境已经搭建起来了,下面有解图
一个比较蛋疼的问题 访问php竟然弹出了个下载php的对话框 - 一根烟的寂寞 - php 王建
 
然后我现在访问的是index.php
就是一个表单提交,可以解析的,但是当我在表单里面写数据提交的时候在火狐下面进行测试,弹出了个下载的对话框
我在apache里面是这样的配置
LoadModule php5_module        modules/libphp5.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

我的页面代码是这样的
header("content-Type:text/html;charset=utf-8");


if(isset($_POST['submit'])){
        
        echo $_POST['name'];
}

if(isset($_GET['a'])){
        echo $_GET['a'];
}

?>

<form action="index.php" method="post" name="" >
<input type="text" name="name" value="">
<input type="submit" name="submit" value="tijiao">
</form>
<a href='?a=test'>asdsdadasd</a>

-----------------------------------
刚开始怀疑是不是提交的问题,我用get方式进行测试 是可以得到想要的结果 ,就是post不行。
apache解析php这应该是没问题吧。不知道问题出在哪里。又查看apache的日志文件是这样的。
[Tue Jun 26 14:35:32 2012] [error] [client 127.0.0.1] File does not exist: /var/ftp/pub/test1/favicon.ico
[Tue Jun 26 14:35:33 2012] [error] [client 127.0.0.1] File does not exist: /var/ftp/pub/test1/favicon.ico
[Tue Jun 26 14:35:33 2012] [error] [client 127.0.0.1] File does not exist: /var/ftp/pub/test1/favicon.ico

127.0.0.1 - - [26/Jun/2012:14:35:32 +0800] "GET /test.php HTTP/1.1" 200 170
127.0.0.1 - - [26/Jun/2012:14:35:32 +0800] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [26/Jun/2012:14:35:33 +0800] "GET /test.php HTTP/1.1" 200 170
127.0.0.1 - - [26/Jun/2012:14:35:33 +0800] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [26/Jun/2012:14:35:33 +0800] "GET /test.php HTTP/1.1" 200 170
127.0.0.1 - - [26/Jun/2012:14:35:33 +0800] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [26/Jun/2012:14:36:45 +0800] "GET /test.php HTTP/1.1" 200 170
127.0.0.1 - - [26/Jun/2012:14:36:45 +0800] "GET /favicon.ico HTTP/1.1" 200 -
127.0.0.1 - - [26/Jun/2012:14:36:48 +0800] "GET /favicon.ico HTTP/1.1" 304 -
127.0.0.1 - - [26/Jun/2012:14:49:14 +0800] "GET /test.php HTTP/1.1" 200 193
127.0.0.1 - - [26/Jun/2012:14:49:14 +0800] "GET /favicon.ico HTTP/1.1" 304 -
127.0.0.1 - - [26/Jun/2012:14:49:14 +0800] "GET /test.php HTTP/1.1" 200 193
127.0.0.1 - - [26/Jun/2012:14:49:23 +0800] "GET /test.php HTTP/1.1" 200 203
127.0.0.1 - - [26/Jun/2012:14:49:24 +0800] "GET /test.php HTTP/1.1" 200 203
127.0.0.1 - - [26/Jun/2012:14:49:25 +0800] "GET /test.php?a=test HTTP/1.1" 200 207
127.0.0.1 - - [26/Jun/2012:14:50:17 +0800] "GET /test.php?a=test HTTP/1.1" 200 207
127.0.0.1 - - [26/Jun/2012:14:50:31 +0800] "GET /test.php HTTP/1.1" 200 203
127.0.0.1 - - [26/Jun/2012:14:50:31 +0800] "GET /favicon.ico HTTP/1.1" 304 -
127.0.0.1 - - [26/Jun/2012:14:50:33 +0800] "GET /test.php?a=test HTTP/1.1" 200 207
127.0.0.1 - - [26/Jun/2012:14:53:34 +0800] "GET /test.php HTTP/1.1" 200 203
127.0.0.1 - - [26/Jun/2012:14:53:34 +0800] "GET /favicon.ico HTTP/1.1" 200 -
127.0.0.1 - - [26/Jun/2012:14:53:36 +0800] "GET /test.php?a=test HTTP/1.1" 200 207
127.0.0.1 - - [26/Jun/2012:14:55:23 +0800] "GET /test.php?a=test HTTP/1.1" 200 53323
127.0.0.1 - - [26/Jun/2012:14:55:23 +0800] "GET /favicon.ico HTTP/1.1" 304 -
127.0.0.1 - - [27/Jun/2012:16:30:30 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:30:30 +0800] "GET /favicon.ico HTTP/1.1" 304 -
127.0.0.1 - - [27/Jun/2012:16:32:50 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:32:50 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:32:50 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:32:51 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:32:51 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:32:51 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:32:51 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:32:51 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:32:52 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:32:52 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:32:52 +0800] "GET /test.php HTTP/1.1" 200 2
127.0.0.1 - - [27/Jun/2012:16:33:46 +0800] "GET /test.php HTTP/1.1" 200 22
127.0.0.1 - - [27/Jun/2012:16:45:40 +0800] "GET /test.php HTTP/1.1" 200 3
127.0.0.1 - - [27/Jun/2012:16:45:41 +0800] "GET /test.php HTTP/1.1" 200 3
127.0.0.1 - - [27/Jun/2012:16:45:54 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:16:46:12 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:02:19 +0800] "GET /test.php HTTP/1.1" 200 52923
127.0.0.1 - - [27/Jun/2012:17:11:02 +0800] "GET /test.php HTTP/1.1" 200 52484
127.0.0.1 - - [27/Jun/2012:17:11:02 +0800] "GET /test.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524
127.0.0.1 - - [27/Jun/2012:17:11:02 +0800] "GET /test.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2146
127.0.0.1 - - [27/Jun/2012:17:20:24 +0800] "GET /test.php HTTP/1.1" 200 397
127.0.0.1 - - [27/Jun/2012:17:21:05 +0800] "GET /test.php HTTP/1.1" 304 -
127.0.0.1 - - [27/Jun/2012:17:21:06 +0800] "GET /test.php HTTP/1.1" 304 -
127.0.0.1 - - [27/Jun/2012:17:21:06 +0800] "GET /test.php HTTP/1.1" 304 -
127.0.0.1 - - [27/Jun/2012:17:21:07 +0800] "GET /test.php HTTP/1.1" 304 -
127.0.0.1 - - [27/Jun/2012:17:21:22 +0800] "GET /test.php HTTP/1.1" 200 53343
127.0.0.1 - - [27/Jun/2012:17:21:22 +0800] "GET /test.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524
127.0.0.1 - - [27/Jun/2012:17:21:22 +0800] "GET /test.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2146
127.0.0.1 - - [27/Jun/2012:17:21:36 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:21:37 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:21:38 +0800] "GET /test.php?a=test HTTP/1.1" 200 208
127.0.0.1 - - [27/Jun/2012:17:22:46 +0800] "GET / HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:22:48 +0800] "GET /?a=test HTTP/1.1" 200 208
127.0.0.1 - - [27/Jun/2012:17:22:54 +0800] "GET /?a=test HTTP/1.1" 200 208
127.0.0.1 - - [27/Jun/2012:17:22:54 +0800] "GET /?a=test HTTP/1.1" 200 208
127.0.0.1 - - [27/Jun/2012:17:22:55 +0800] "GET /?a=test HTTP/1.1" 200 208
127.0.0.1 - - [27/Jun/2012:17:22:55 +0800] "GET /?a=test HTTP/1.1" 200 208
127.0.0.1 - - [27/Jun/2012:17:23:28 +0800] "GET /?a=test HTTP/1.1" 200 188
127.0.0.1 - - [27/Jun/2012:17:23:29 +0800] "GET /?a=test HTTP/1.1" 200 188
127.0.0.1 - - [27/Jun/2012:17:23:29 +0800] "GET /?a=test HTTP/1.1" 200 188
127.0.0.1 - - [27/Jun/2012:17:23:29 +0800] "GET /?a=test HTTP/1.1" 200 188
127.0.0.1 - - [27/Jun/2012:17:23:29 +0800] "GET /?a=test HTTP/1.1" 200 188
127.0.0.1 - - [27/Jun/2012:17:23:29 +0800] "GET /?a=test HTTP/1.1" 200 188
127.0.0.1 - - [27/Jun/2012:17:23:32 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:23:33 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:23:33 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:23:38 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:23:38 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:23:38 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:23:38 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:23:38 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:23:39 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:35:20 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:35:20 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:35:20 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:35:20 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:35:21 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:35:22 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:35:22 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:35:22 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:35:22 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:42:13 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:42:14 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:42:14 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:42:20 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:43:49 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:43:49 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:43:49 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:43:49 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:43:49 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:43:51 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:43:52 +0800] "GET /?a=test HTTP/1.1" 200 188
127.0.0.1 - - [27/Jun/2012:17:43:57 +0800] "GET / HTTP/1.1" 200 184
127.0.0.1 - - [27/Jun/2012:17:49:41 +0800] "GET / HTTP/1.1" 200 52704
127.0.0.1 - - [27/Jun/2012:17:49:41 +0800] "GET /index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524
127.0.0.1 - - [27/Jun/2012:17:49:41 +0800] "GET /index.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2146
127.0.0.1 - - [27/Jun/2012:17:51:02 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:51:03 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:51:03 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:51:03 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:51:03 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:51:03 +0800] "GET /test.php HTTP/1.1" 200 204
127.0.0.1 - - [27/Jun/2012:17:51:05 +0800] "GET /test.php HTTP/1.1" 200 204


不知道谁遇到这样的问题 出来交流交流
  评论这张
 
阅读(963)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018