php put教程,对 PUT 方法的支持

博主在尝试使Apache 2.0.40支持PUT请求时遇到了困难,发现无法通过Script指令使mod_php以正确方式工作。最终,他们只能通过创建CGI脚本来实现,通过#!/usr/bin/php来调用PHP解释器。尽管尝试了AddHandler等常规方法,但都没能成功。Apache的错误日志提供的信息误导性很强,整个过程让博主感到挫败。PUT请求似乎只能通过CGI机制处理。
摘要由CSDN通过智能技术生成

[#7]

mikeb at mikebanahan dot com [2003-11-03 14:41:55]

I have spent a lot of time trying to make PUT work with Apache 2.0.40. I have not yet been able to find any way of making the Script directive invoke php via mod_php, the only way has been to have a file called example.cgi and invoke it via CGI, with the file starting

#!/usr/bin/php

so the PHP interpreter is invoked through the CGI mechanism and not as a module.

If there IS a way of making it work 'right' I'd love to know! After six hours of messing around, I've settled for CGI. The error messages in the apache error log are significantly misleading and the whole thing has been an exercise in frustration.

Attempts to use AddHandler and all 'normal' ways of trying to persuade Apache to do this have been fruitless. It does seem as if PUT can only be handled by CGI invocation.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值