I would like to store any errors and warings generated by php in a log file but still display them in the normal way (echo) as well.
Thanks
php.ini contains two relevant variables: you can specify the log file with error_log, and choose whether or not to display the errors with display_errors
error_log
display_errors