this is not a blog

I Reckon This Must be the Place, I Reckon

Other Code Sepositories


There were many links here to source code – mostly in PHP and Perl and open source. Then they were all moved to Github. Then they were all REMOVED from that place after they sold out to Microsoft.

It all might come back to be here soon...

Code Debugging API

PHP Debug is a single file API for tracing PHP applications.

You can add, with minimal impact, diagnostics to be displayed upon program termination. Each diagnostic contains file, function and caller function information as well.

Just an API, not a class. Just include the debug.php file and add debug() calls throughout your code similar to var_dump(). However, the diagnostic messages are stored and displayed as a list at program termination. The diagnostics can be disabled and controlled in other ways.

It's small and simple yet very versatile and includes demonstration/testing code.

Here is the PHP Debug code. There is a Go debug, and a Perl debug, to be here soon.



Known Bugs

The exit diagnostic messages have file/function/line data. The file is supposed to have the DOCUMENT_ROOT removed (i.e. "/srv/www/htdocs"); however, running in some environments this gets screwed up – e.g. command line or in Visual Studio Code with "Launch currently open script". (The latter case has really weird $_SERVER array data.)


Screen Shots


GMLP is the Goofy Markup Language Processor.

Markup Language because it converts input text formatted like Markdown and produces HTML output like and it's variants.

Processor because the input format is not hard-coded but defined as PHP data.

And Goofy because the code is a bit bloated and confusing (and the first format definition file was goofy).

The PHP data – optionally supported by functions and/or closures – is specified on the command line:

    ./gmlp markdown > readme.htm

The PHP data to define "markup rules" is called a definition file. Included are files for Markdown, BBCode, HTML2MD, TXT2MD, CSS minify/unminify, strip comments and a few more as examples.

Here is the GMLP code archive. But first read the README; and view the basic algorithm GMLP PHP.

Simple Mark Up

SMU is Simple Markup and is a much simpler verison of GMLP.

Here is the SMU 1.4.0 code archive. But first read the SMU README.