Wegen diesem Thread habe ich eine kleine Funktion geschrieben, die mittels GD2 in PHP Text innerhalb und entlang eines Kreises ("draw circular text") ausgibt. Beispiel-Ausgaben Code PHP-Code: <?php /** * Draws a circular text on a (virtual) circle in a GD2 image * @param resource $imgObj The GD2 object * @param array $textProps Associative ...
<?php /** * Draws a circular text on a (virtual) circle in a GD2 image * @param resource $imgObj The GD2 object * @param array $textProps Associative
Für alle, die gerne JSON-Daten mit PHP komprimieren möchten. Diese Funktion entfernt alle Steuerzeichen sowie alle Leerzeichen: PHP-Code: /** * Compresses a JSON string by removing all control characters and white spaces * @param string $json The JSON to compress * @author ComFreek * <code> * $old_json = file_get_contents('old.json'); * $new_json = json_compress( $old_json ); * file_put_contents('new.json', ...
/** * Compresses a JSON string by removing all control characters and white spaces * @param string $json The JSON to compress * @author ComFreek * <code> * $old_json = file_get_contents('old.json'); * $new_json = json_compress( $old_json ); * file_put_contents('new.json',
Hallo an alle Leser! dies ist mein erster Blogeintrag und ich hoffe es schreiben ein paar Leute Kommentare dazu Dieser Thread hat mich dazu gebracht, eine eigene Klasse für Ordner/-inhalte in PHP zu schreiben: TCachedDirScanner Momentan (09.08.2010) beinhaltet die Klasse folgende Funktionen:Cache-FunktionAusgeben des Ordnerinhaltes (Dateien oder/und Ordner)Suchen von Datei/Ordnernamen mit und ohne reguläre Ausdrücken Der Quellcode ist unter der Attribution-ShareAlike 3.0 Unported ...
Aktualisiert: 10.09.10 um 12:43 von ComFreek