Australia's Leading Digital Marketing Experts. T. 1300 235 433  |  Aggregation Enquires Welcome

Example Interest Rates: Home Loan Variable: 1.89% (1.9%*) • Home Loan Fixed: 1.84% (2.11%*) • Fixed: 1.84% (2.11%*) • Variable: 1.89% (1.9%*) • Investment IO: 2.05% (4.36%*) • Investment PI: 1.58% (2.72%*)

Put POST Data Into Text File

If you need to put POST data into a text file, this simple single line of code will suffice.

1
file_put_contents('text.txt', file_get_contents('php://input'));

Be careful with security implications. See other wrappers here .

To get POST data from an incoming request, use the $_POST array. The POST array is associative, meaning that each incoming parameter will be a key-value pair. Sometimes you'll have to print the incoming request for debugging or to assist with visualizing the result. Use the following:

1
var_dump($_POST);

or

1
printf($_POST);

Download our 650-page guide on Finance Marketing. We'll show you exactly how we generate Billions in volume for our clients.

  AUS Eastern Standard Time (Connecticut)

  Want to have a chat?
 

Like this article?

Share on facebook
Share on Facebook
Share on twitter
Share on Twitter
Share on linkedin
Share on Linkdin
Share on pinterest
Share on Pinterest

Leave a comment