Categories
Theory

URL shortening

URL shortening is a technique on the World Wide Web in which a Uniform Resource Locator (URL) may be made substantially shorter and still direct to the required page. This is achieved by using a redirect which links to the web page that has a long URL. https://en.wikipedia.org/wiki/URL_shortening If you glance at the address bar of your browser right now, you will see that […]

Categories
PHP

Bar-code generator for PHP

Whilst fiddling around with QR Codes, I came across this Bar-code generator for PHP. Minimum requirements: PHP 5 GD2 Extension Here is my code for a basic implementation (adapted from the manual which has errors): <?php require_once(‘class/BCGFontFile.php’); require_once(‘class/BCGColor.php’); require_once(‘class/BCGDrawing.php’); require_once(‘class/BCGcode128.barcode.php’); // The arguments are R, G, and B for color. $colorBack = new BCGColor(255, 255, […]