RBA Cash Rate: 4.35% · 1AUD = 0.67 USD · Inflation: 4.1%  
Leading Digital Marketing Experts | 1300 235 433 | Aggregation Enquires Welcome | Book Appointment
Example Interest Rates: Home Loan Variable: 5.20% (5.24%*) • Home Loan Fixed: 5.48% (6.24%*) • Fixed: 5.48% (6.24%*) • Variable: 5.20% (5.24%*) • Investment IO: 5.78% (6.81%*) • Investment PI: 5.49% (6.32%*)

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.

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:




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

  E. Australia Standard Time [ UTC+10, Default ] [ CHECK TO CHANGE ]

  Want to have a chat?

Like this article?

Share on Facebook
Share on Twitter
Share on Linkdin
Share on Pinterest

Leave a comment