Php: Difference between revisions

From Adam Colton
Jump to navigation Jump to search
Created page with " cat /var/log/apache2/error.log Category:Notes Category:Code"
 
No edit summary
Line 1: Line 1:
== Error Log ==
   cat /var/log/apache2/error.log
   cat /var/log/apache2/error.log
== JSON ==
  json_decode($str, true);
  json_encode($obj);
The true makes it associative.
[[Category:Notes]]
[[Category:Notes]]
[[Category:Code]]
[[Category:Code]]

Revision as of 18:16, 4 December 2015

Error Log

 cat /var/log/apache2/error.log

JSON

 json_decode($str, true);
 json_encode($obj);

The true makes it associative.