markbokil.com

Category Archives: php

Debugging PHP apps

Debugging PHP can be difficult if you can’t see what is going on inside your web service. Lately I have been using a strategy of using log messages to monitor the values of variables. The log messages will go to your Apache error_log. In your PHP code add the below statement and give $myVar some value. error_log(“***** PHP -> ” . $myVar, 0); Open a console — iterm is great if you want an excellent […]

| Tagged | Leave a comment