Home Put POST Data Into Text File

    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.

    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:


    Short URL for this post: http://shor.tt/2nIA