0
對於android應用程序,需要將數據作爲xml請求發佈到php文件。 如何在PHP端讀取XML請求。如何在php中接受XML發佈請求?
對於android應用程序,需要將數據作爲xml請求發佈到php文件。 如何在PHP端讀取XML請求。如何在php中接受XML發佈請求?
使用php://input和file_get_contents()
獲取原始輸入。
$content = file_get_contents('php://input');