我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

php中的响应头[关闭]

I want to know that how to send a response using header in php . When an application or an User hit my URL then i have to send a response header with response 1 for failure and 0 for success, and if the response is success (0) then i have to send two values in response header.

The header function will allow you to set a header.

header("foo", 1);

… but it sounds like you are reinventing HTTP status codes.

近期文章

  • 以下数据的排序。 [关闭]
  • 无法执行sql查询[关闭]
  • preg_match for string - string [关闭]
  • 关于“联系我们”页面的问题[关闭]
  • 在php中循环增加5
  • 使用PHP将SND / AU转换为mp3 [关闭]
  • 如何在PHP中解析此JSON?
  • msqli_query中的$ _SESSION变量[关闭]
  • 注意:未定义的索引:$ username [duplicate]
  • 这个Php脚本有什么问题? [关闭]
  • 在AJAX中没有接收JSON数据
  • 在symfony中将php数组转换为json格式[关闭]
  • too long
  • 获取警告“已弃用:函数ereg()已弃用”[重复]
  • 如何从字符串“+11.00”返回正则表达式php值“+11”[重复]
  • 在sql数据库中匹配月份和年份
  • PHP Mysqli查询更新无法使用变量
  • 如何在后台连续运行ajax请求?
  • C++的指针类型转换是什么意思?为什么需要类型转换?
  • python 控制台输出的异常捕获不到

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华