amnuts/phperror-gui

A clean and effective single-file GUI for viewing entries in the PHP error log, allowing for filtering by path and by type.

v1.0.3 2016-01-27 10:35 UTC

This package is auto-updated.

Last update: 2024-12-16 07:10:30 UTC


README

A clean and effective single-file GUI for viewing entries in the PHP error log, allowing for filtering by path and by type.

Flattr this git repo

getting started

There are two ways to getting started using this gui.

  1. Simply to copy/paste or download the phperror-gui.php to your server.
  2. Install via composer by running the command composer require amnuts/phperror-gui

usage

Simply load the script up in your browser and it should show you the entries from the PHP log file. It will find the error log from the ini settings, though if you want to specify the log file you can change the $error_log variable to the path of your error log file.

You can select the types of errors you want displaying, sort in different ways or filter based on the path of the file producing the error (as recoded in the log).

Usage

The interface will also attempt to show you the snippet of code where the error has occurred and also the stack trace if it's recorded in the log file.

cache

There is a very rudimentary option to cache the results. This is set by using the $cache variable and setting it to the path of the cache file (must be a writable location). It will store the results of the file scan and then the position in the file it read up to. On subsequent reads of the file it will seek to that position and start to read the file. This works so long as you are not doing log rotation as the seek position could suddenly become much greater than the file size. So it's only recommended that you use the cache if you keep the one log file.

License

MIT: http://acollington.mit-license.org/