Dump to file php




















Learn more about clone URLs. Download ZIP. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters.

Copy link. Thanks for this helpfull script! My suggestions : remove 'echo "Done! Since what you dump is the body of the actual request, not the response. Nice script, thank you! This doesn't need to be a class, could be a easy to use library function. For the next time I come across this- Single function version. Simple, but useful snippet. My edit to dump request to server log via php -S localhost Sign up for free to join this conversation on GitHub.

Already have an account? Sign in to comment. You signed in with another tab or window. Reload to refresh your session. Learn more. Asked 11 years, 5 months ago. Active 3 years, 6 months ago. Viewed 72k times. I want to dump request variables to a file for debugging. How's this possible?

Improve this question. Jamie Redmond Jamie Redmond 1 1 gold badge 11 11 silver badges 14 14 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Tiny insignificant detail, but Forgot your closing? You can get extra whitespace after the closing tag which can cause errors in your script — Stoosh.

Show 1 more comment. Peon Peon 7, 7 7 gold badges 52 52 silver badges 89 89 bronze badges. You don't need it, but it will contain true or false value depending on whether the action was successful. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.



0コメント

  • 1000 / 1000