POST Function Using HTTP Headers Return Result In A Variable


/ Published in: PHP
Save to your folder(s)

This function dosen't use curl, or any other libraries. Just include it in your function library and use it like this:
$Post_result = _post('http://www.yourdomain.com/your_path/post_api.php',"method=fetchJson&params=select * from user");

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.