I'm using the command line to execute my php scripts instead of executing them in the browser, so I can look for errors a bit quicker. For browser there are some auto-refresh applications/plugins, so you don't have to hit CMD+R all the time.
For my error log I can use the tail -f command, but sure enough it doesn't execute/compile, so I can't use it for php files in the command-line.
Is there some equivalent or any work-around for compiled php-files ? Would be even greater to only output something in case of an error (native php-error like warnings, notices)!
Working on mac os/x if that's somehow helpful.
tail -fthe error log (enable PHP to log all errors, warnings, notices into a file, tail & follow it). Otherwise work with a terminal/shell and just press the up arrow key and you'll have the last command you can then fire-up again. Probably ctrl+r works to search the history of commands as well under OSX.