PHP
Portfolio - Ajax/PHP Navigation Guide for renowned Clinic
by Andreas Glaser on Nov.04, 2008, under Development, JavaScript, Joomla 1.x, My Portfolio, PHP, Various

Navigation Guide written in JavaScript/Ajax/PHP
My order was to develop a navigation guide which should help the visitors to discover the most important content of a website. This “NaviGuide” had to be realized as JavaScript/Ajax/CSS pop up on the fact that much users are using pop up blocker.
This NaviGuide runs since 24.July 2008 at www.stz-baden-baden.de implemented in the well known Content Managment System “Joomla”.
Release - Imageloader
by Andreas Glaser on Oct.14, 2008, under Computer, Development, Imageloader, PHP, Projects
A couple of weeks ago I developed a little “Online Image Uploader” based on my private “JaZzPHP Framework”. The website just consists of a simple upload form as well as rudimentary archive page.
The purpose is to simplify sharing screen shots, images etc..
This is basically a private tool, but if someone needs such a function - fell free to use it.
Have fun with it!
Andreas Glaser (aka JaZz)
Starship - Release
by Andreas Glaser on Sep.25, 2008, under Announcement, Computer, Development, Gaming, Linux, PHP, Reports, Software, Various
Hello everybody,
I would like to present you my first little game - called “Starship”.
It is basically a 2D space shooter in a great 80’s look with some funny features.
Screenshots
Controls
- S - Start game
- Arrow keys - Steering
- Space - Fire
- ESC - Quit
Please post me some comments and your improvement suggestions!
Have fun with this little pastime game!
Download
Starship 1.2 (2 MiB, 38 hits)
So long,
Andreas Glaser (aka JaZz)
Online MD5 Hash Generator
by Andreas Glaser on Sep.04, 2008, under Computer, Development, PHP
Hi guys,
since I’m so often converting strings into MD5 hashs I thought I could quickly set up a little page for doing that. So if you need such a function as well… have a look at the following web address.
http://www.md5.andreas-glaser.com/
Screenshot
Have fun with this little tool.
So long,
Andreas Glaser (aka JaZz)
PHP - count() vs. sizeOf()
by Andreas Glaser on Aug.19, 2008, under Computer, Development, PHP
I was wondering whether there is a performance difference between count() and sizeof().
Test code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | <?PHP // CREATE TEST ARRAY $a = array('a','b','c','d','e','f','g','h','i','j'); // START TIMER ONE $TimerOne = benchmarkTimerStart(); // CALL COUNT FUNCTION 1000000 TIMES for($i=0;$i<1000000;$i++) { count($a); } // STOP TIMER ONE $ResultOne = benchmarkTimerStop($TimerOne); // START TIMER TWO $TimerTwo = benchmarkTimerStart(); // CALL SIZEOF FUNCTION 1000000 TIMES for($i=0;$i<1000000;$i++) { sizeOf($a); } // STOP TIMER TWO $ResultTwo = benchmarkTimerStop($TimerTwo); // PRINT RESULTS echo 'Count: '.$ResultOne.' Seconds<br />'; echo 'SizeOf: '.$ResultTwo.' Seconds'; // TIMER FUNCTIONS function benchmarkTimerStart() { $timeExplode = explode(" ", microtime()); $time = $timeExplode[1] + $timeExplode[0]; return $time; } function benchmarkTimerStop($timer=0) { $timeExplode = explode(" ", microtime()); $time = $timeExplode[1] + $timeExplode[0]; $finish = $time - $timer; $endTime = sprintf("%4.3f", $finish); return $endTime; } ?> |
My test proved that there is no difference at all! sizeof() is just an alias for count().
So I suggest you to use count() - its the original name of this function.
So long,
Andreas Glaser (aka JaZz)
Joomla 1.x | Mambot | Images Preloader
by Andreas Glaser on Jul.10, 2008, under Cascade Style Sheet, Computer, Development, Joomla 1.x, PHP
A couple of days ago i was forced to get in touch with the well known CMS framework “Joomla”. First of all i was a little bit confused about the system mambot/module/component… but it seems to be logical.
First Joomla Mambot
To learn the hole thing I decided to develop a small script witch preloades every picture on a page.
The Mambot
The script itselfe i absolutely simple. I developed a preload function based on PHP5/XHTML/CSS which is very modern and supported by every browser as well.
This first encounter between Joomla and me is already in use. Feel free to observe the “live demo” on the following web address.
http://www.stz-baden-baden.com
Screenshots
Download
Joomla 1.x | Mambot | JaZz Images Preloader
Have a nice day,
Andreas Glaser (aka JaZz)
PHP Online-Zeit Zähler
by Andreas Glaser on Jun.10, 2008, under Computer, Development, PHP
Vor ein paar Tagen wurde ich zum wiederholten mal gefragt, wie man einen Counter in PHP entwickelt, welcher die Dauer des Aufenthalt eines Besuchers auf einer Website ermitteln kann.
Der Ansatz
Um einen Online-Zeit Zähler zu programmieren muss man entweder Cookies oder Session Variabeln verwenden. Zudem, da PHP Serverseitig läuft kann man niemals zu 100% genau sagen wie lange sich ein Benutzer auf der Website aufhält. Desweiteren muss man sich auf eine Genauigkeit festlegen (bsp.: 60 Sec).
Der Code
Falls ihr Fragen dazu habt - einfach posten!
Andreas Glaser
PHP - Properties
by Andreas Glaser on May.14, 2008, under Development, PHP
Leider gibt es in PHP keine Properties wie in vielen Sprachen.
Um die Vorzüge von Properties doch nutzen zu können, habe ich hier eine möglichkeit um dies zu realisieren.
Beispiel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <?PHP class TestClass { // INITIALIZE VARIABLES private $Variable = NULL; public function __construct() { // SET VARIABLE $this->Variable = "Example"; } public function __destruct() { } // PROPERTY public function prop_Variable($Value=NULL) { //SET if($Value!=NULL) $this->Variable = $Value; //GET else return $this->Variable; } } //CreateObject $obj_Test = new TestClass; // SET VARIABLE $obj_Test->prop_Variable('Content'); // GET VARIABLE echo $obj_Test->prop_Variable(); ?> |
Ich wünsche viel Spaß damit!
Mit freundlichen Grüßen,
Andreas Glaser



