July PHP-Scripts Blog Archives

Random web page background colors

If you want to create a random background color

<?php $hex = dechex(rand(0,255)) . dechex(rand(0,255)) . dechex(rand(0,255)); ?>

and then you’d use the following in your body tag:

<body BGCOLOR=“#<?php echo($hex);?>”>

Related
How to change background color only on holidays

Free command line PHP to EXE converter for Windows

Bambalam PHP EXE Compiler/Embedder:
a free command line tool to convert PHP applications to standalone Windows .exe applications. The exe files produced are totally standalone, no need for php dlls etc. The php code is encoded using the Turck MMCache Encode library so it’s a perfect solution if you want to distribute your application while protecting […]

Colorized PHP ASCII art

Generate PHP ASCII art in color online.