菜要多喝水才會長大

PHP – 取得Http Content Data

by GDX on 十二月.09, 2009, under PHP, 程式設計

在ASP.NET的時候會將上傳的檔案以自己的方式作處理
用BinaryReader從Request.InputStream讀出來Content Data
在 PHP 的方法則是使用 php://input
即可讀取出Content Data作後續處理

還有一些有用的參數

  • php://stdin
  • php://stdout
  • php://stderr
  • php://output
  • php://input
  • php://filter

參考資料:
http://php.chinaunix.net/manual/zh/wrappers.php.php

:, ,

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Archives

All entries, chronologically...