[PHP] How to DUMP $_POST parameters to a log file? Very useful and missing in the php.net
Dear PHP Gurus, I need dump a $_POST parameters as part of debug process with a client. Any know service to make this ? I know $_POST is an Array but I look for a service function that can save the parsed array into a file. let say : $stt = save_POST_into_file ($_POST, $fp); Any idea ? -- Best Regards, *Eli Orr* CTO Founder *LogoDial Ltd.* M:+972-54-7379604 O:+972-74-703-2034 F: +972-77-3379604 Plaut 10, Rehovot, Israel Email: _Eli.Orr@LogoDial.com_ Skype: _eliorr.com_
Re: [PHP] How to DUMP $_POST parameters to a log file? Very useful and missing in the php.net
On May 8, 2011 1:57 PM, Eli Orr (Office) eli@logodial.com wrote: Dear PHP Gurus, I need dump a $_POST parameters as part of debug process with a client. Any know service to make this ? I know $_POST is an Array but I look for a service function that can save the parsed array into a file. let say : $stt = save_POST_into_file ($_POST, $fp); file_put_contents($filename, print_r($array, true)); Regards
Re: [PHP] How to DUMP $_POST parameters to a log file? Very useful and missing in the php.net
Thanks. Great! It works so well ! On 08/05/2011 15:01, Peter Lind wrote: On May 8, 2011 1:57 PM, Eli Orr (Office)eli@logodial.com wrote: Dear PHP Gurus, I need dump a $_POST parameters as part of debug process with a client. Any know service to make this ? I know $_POST is an Array but I look for a service function that can save the parsed array into a file. let say : $stt = save_POST_into_file ($_POST, $fp); file_put_contents($filename, print_r($array, true)); Regards -- Best Regards, *Eli Orr* CTO Founder *LogoDial Ltd.* M:+972-54-7379604 O:+972-74-703-2034 F: +972-77-3379604 Plaut 10, Rehovot, Israel Email: _Eli.Orr@LogoDial.com_ Skype: _eliorr.com_