https://github.com/baylorrae/php-console
A console script that I made for php debugging.
https://github.com/baylorrae/php-console
Last synced: 9 months ago
JSON representation
A console script that I made for php debugging.
- Host: GitHub
- URL: https://github.com/baylorrae/php-console
- Owner: BaylorRae
- Created: 2011-05-21T22:04:40.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-05-23T01:58:48.000Z (about 15 years ago)
- Last Synced: 2023-03-11T04:44:57.435Z (over 3 years ago)
- Language: PHP
- Homepage:
- Size: 171 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## PHP Console
This is a small script that I wrote to make PHP debugging a little easier. I made it because my app was dealing with a lot of redirects, and I wanted to log information without it being erased after the redirect.
Here's a [video](http://www.screenr.com/uUj) that explains how to use it.
Everything is stored in a text file that gets created in the same directory as `console.php`.
## Usage
The first thing to do is make sure `console.php` is executable. And then run it in Terminal.
chmod +x console.php
./console.php
By default `console.php` will reload the text file every 5 seconds. But you can change the time like this
./console.php delay=1
Then from your file include `console.class.php` and add logs with the following syntax.
```php
```
## Configuration
The console class has two variables that can be changed. The first is for where `console.txt` is created. And the second is for the time format.
```php
```