开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 333|回复: 8
收起左侧

[已解决] php相应问题

 关闭 [复制链接]
结帖率:97% (84/87)
发表于 2023-2-5 11:33:27 | 显示全部楼层 |阅读模式   美国
16精币
本帖最后由 陽陽陽 于 2023-2-5 11:35 编辑

今天显得没事做了一个,然后就来问题了:只是做了一个填表然后上传保存文件,不知道哪错了。
附件已经上传

报错信息:HTTP Error 405.0 - Method Not AllowedThe page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.
Most likely causes:
  • The request sent to the Web server used an HTTP verb that is not allowed by the module configured to handle the request.
  • A request was sent to the server that contained an invalid HTTP verb.
  • The request is for static content and contains an HTTP verb other than GET or HEAD.
  • A request was sent to a virtual directory using the HTTP verb POST and the default document is a static file that does not support HTTP verbs other than GET or HEAD.

Things you can try:
  • Verify the list of verbs enabled for the module handler this request was sent to, and ensure that this verb should be allowed for the Web site.
  • Check the IIS log file to see which verb is not allowed for the request.
  • Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

Detailed Error Information:
Module
   StaticFileModule
Notification
   ExecuteRequestHandler
Handler
   StaticFile
Error Code
   0x80070001

Requested URL
   http://192.168.0.148:80/upload.php
Physical Path
   C:\Program Files\Yang\HTTP\upload.php
Logon Method
   Anonymous
Logon User
   Anonymous



More Information:This error means that the request sent to the Web server contained an HTTP verb that is not allowed by the configured module handler for the request.



upload.zip

838 Bytes, 下载次数: 3

最佳答案

查看完整内容

https://blog.csdn.net/sundacheng1989/article/details/41719373应该是你配置的问题 你可以试试 单独创建个文件 看看正常不

求助知识:请将问题描述清楚,最好把你有问题的源码打包上传上来,这样更方便大家帮助你。
友情提醒:本版被采纳的主题可在 申请荣誉值 帖子申请荣誉值,获得 3点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。

结帖率:100% (1/1)

签到天数: 21 天

发表于 2023-2-5 11:33:28 | 显示全部楼层   河南省郑州市
本帖最后由 afu45 于 2023-2-6 08:24 编辑

https://blog.csdn.net/sundacheng1989/article/details/41719373应该是你配置的问题

你可以试试
单独创建个文件 看看正常不
[PHP] 纯文本查看 复制代码
<?php echo phpinfo();?>

评分

参与人数 1荣誉 +3 收起 理由
项目部004 + 3 热心帮助他人,荣誉+3,希望继续努力(*^__^*) 嘻嘻!

查看全部评分

回复

使用道具 举报

结帖率:97% (84/87)

签到天数: 21 天

 楼主| 发表于 2023-2-5 11:56:43 | 显示全部楼层   美国
@afu45 看看
回复

使用道具 举报

结帖率:100% (1/1)

签到天数: 21 天

发表于 2023-2-5 14:56:01 | 显示全部楼层   河南省郑州市
C:\Program Files\Yang\HTTP\
这个目录下没有那个files 文件夹吧我这里测试是正常的
回复

使用道具 举报

结帖率:97% (84/87)

签到天数: 21 天

 楼主| 发表于 2023-2-6 03:14:13 | 显示全部楼层   美国
afu45 发表于 2023-2-5 14:56
C:\Program Files\Yang\HTTP\
这个目录下没有那个files 文件夹吧我这里测试是正常的
...

C:\Program Files\Yang\HTTP\files
这个文件夹是存在的啊
回复

使用道具 举报

结帖率:97% (84/87)

签到天数: 21 天

 楼主| 发表于 2023-2-6 03:26:56 | 显示全部楼层   美国
afu45 发表于 2023-2-5 14:56
C:\Program Files\Yang\HTTP\
这个目录下没有那个files 文件夹吧我这里测试是正常的
...

我用的IIS启动 http://192.168.0.148/
然后upload之后就出现那个错误
回复

使用道具 举报

结帖率:97% (84/87)

签到天数: 21 天

 楼主| 发表于 2023-2-6 03:27:41 | 显示全部楼层   美国
afu45 发表于 2023-2-5 14:56
C:\Program Files\Yang\HTTP\
这个目录下没有那个files 文件夹吧我这里测试是正常的
...

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:
Module           IIS Web Core
Notification           Unknown
Handler           Not yet determined
Error Code           0x80070005
Config Error           Cannot read configuration file due to insufficient permissions
Config File           \\?\C:\Users\yang2\OneDrive\Desktop\HTTP\web.config
Requested URL           http://192.168.0.148:80/upload.php
Physical Path          
Logon Method           Not yet determined
Logon User           Not yet determined

Config Source:
   -1:
    0:

More Information:
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
View more information »
回复

使用道具 举报

结帖率:97% (84/87)

签到天数: 21 天

 楼主| 发表于 2023-2-6 03:47:22 | 显示全部楼层   美国
@大司命 大哥大哥这题靠你了,换了个桌面文件夹还是不行,大佬救命
回复

使用道具 举报

结帖率:100% (1/1)

签到天数: 21 天

发表于 2023-2-6 08:25:47 | 显示全部楼层   河南省郑州市
实在不行  你换成  集成的环境 比如
phpStudy
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 诚聘英才| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 800073686,邮箱:800073686@b.qq.com
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表