Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

phpDiePretty

An alternative to the plain text "die" command in php. If you must die, die pretty.

Installation: Place the class.diePretty.php file in your includes directory.

To enable animations, add in the animate.css script from https://github.com/daneden/animate.css in a web accessible location. You may need to change the class.diePretty.php script to correctly refer to your animate css. Look for the following line and modify accordingly:

  • print '<link rel="stylesheet" href="css/animate.css" />';

Usage: In your script include the diePretty class. require_once(/path/to/include/dir.'class.diePretty.php');

DiePretty::errorPage($ErrorMessage); DiePretty::errorPage($ErrorMessage,$headingMessage); DiePretty::errorPage($ErrorMessage,$headingMessage,$effect);

About

An alternative to the plain text "die" command in php. If you must die, die pretty.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages