RBA Cash Rate: 4.35% · 1AUD = 0.71 USD · Inflation: 4.2%  
Leading Digital Marketing Experts | 1300 235 433 | Aggregation Enquires Welcome | Book Appointment
Example Interest Rates: Home Loan Variable: 5.80% (5.85%*) • Home Loan Fixed: 6.04% (6.83%*) • Fixed: 6.04% (6.83%*) • Variable: 5.80% (5.85%*) • Investment IO: 6.19% (6.22%*) • Investment PI: 6.04% (5.95%*)

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 complimentary 650-page guide on marketing for mortgage brokers. We'll show you exactly how we generate billions in volume for our clients.
Finance Guide, Cropped Top and Bottom
Timezone: E. AUSTRALIA STANDARD TIME · [ CHANGE ]

Like this article?

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

Leave a comment