【问题标题】:What's the PHP equivalent of ASP.NET ashx handlers?什么是 ASP.NET ashx 处理程序的 PHP 等价物?
【发布时间】:2010-05-22 13:00:13
【问题描述】:

我需要将 JSON 编码的响应返回到 flash http get 请求。

在 ASP.NET 中,我使用 ASHX 处理程序来执行此操作。 什么是 PHP 等价物? 我的意思是为了我只得到 JSON,而不是 等。

【问题讨论】:

    标签: php asp.net flash json actionscript-3


    【解决方案1】:

    你应该把它放在你的脚本之上:

    header('Content-Type: application/json; charset=utf-8');
    

    【讨论】:

      【解决方案2】:

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-04-15
        • 1970-01-01
        • 1970-01-01
        • 2010-10-11
        • 1970-01-01
        • 2010-09-23
        相关资源
        最近更新 更多