PHP in der Cloud: cloudControl aus Deutschland bietet PaaS für PHP

Wer eine Webseite betreibt oder gar eine Webapplikation muss sich unweigerlich um Hosting und Server Administration kümmern. Dabei gibt es mittlerweile unendlich viele Möglichkeiten … aber jetzt kommt noch eine dazu: Platform as a Service (PaaS)

Keine Hardware Investitionen, nie wieder Server administrieren oder Sicherheitspatches einspielen müssen, das System skaliert automatisch und das Deploy wird einfacher: Das klingt doch alles wunderbar und das alles bietet SaaS!

Platform as a Service (PaaS) gibt es seit einigen Jahren für Java (Google AppEngine) oder für .NET (Microsoft Azure) aber für PHP sieht es derzeit noch etwas mau aus. Diese Lücke möchte jetzt cloudControl aus Potsdam schließen …

Read the rest of this entry »

PHP Commandline Script in Farbe

Bei PHP Gangster hab ich soeben eine kleine Klasse entdeckt mit der CLI Scripte farbige Ausgaben machen können …

Usage:

 
$color = new Color();
$color->set('red');
 
echo "red textn";
 
$color->reset(); 
$color->echoString("red text on bluen", 'red_u', 'blue');

MySQL Hint: REPLACE / UPDATE

Replace strings with SQL in a field for all rows …

 
UPDATE `table` SET `field` = REPLACE(`field`, 'search string', 'replace with this') WHERE 1=1;

via @vogrim

You are looking for a new Domain?

Need some good ideas?

Visit Domainr (domai.nr), this service takes keywords and creates domainnames like delicio.us from it. nameboy.com creates different domain names from two keywords and make whois-lookups for com, net, org and some other endings. SearchBliss offers a “SEO domain name suggestion tool”, it does just the same as the other tools.

Register expired Domains!

Search on http://networksolutions.com“>networksolutions.com for soon expiring domain names. Just Droped is a very good service with an ugly but powerfull domain search form (you have to create a account). Want know more about buying an expiring domain then read this article.

Some leading Domain Grappers

PHP5 WebSocket Example – A Simple Chat

The classic example for websockets is a chat. This chat example has only 200 lines of code (excl. the Websocket class), is really easy to understand and customizable.

Read the rest of this entry »

Der Erklärbär: Aspect-Oriented Programming mit PHP – Teil 1 – Signal Slot

Wiedermal was Neues!? Wiedermal wird die (Web-)Programmierer-Welt auf den Kopf gestellt!? Objektorientiert ist gelber Schnee von Vorgestern, Design-Patterns verwendet heute schon deine Oma fürs Putzen … und jetzt kommt: TaTaaaa! AOP – Aspect Oriented Programming.

Der Erklärbär erklärt’s! (er versucht es zumindest)

Read the rest of this entry »

New Google Ranking Checker with Locale-Support

A new release of the Google Ranking Checker Class is available now. The new version 1.2.0 is released under a Creative Commons license (by-sa 3.0) and supports locale settings for language and country.

Read the rest of this entry »

Mount Amazon Ec2 with Mac OSX

MacFusion is a free OSX app for mounting FTP and SFTP (SSH) drives into mac finder. Usually you use a user/password combination for authentification but if you want mount an amazon ec2 instance you have to use the pem-file you get here.

Read the rest of this entry »

MySQL/SQL: count chars in table field

SELECT CHAR_LENGTH(field)-CHAR_LENGTH(REPLACE(field,’-',”)) AS count FROM table

PHP Websocket Class new Version

Auf Anfrage einiger Leser habe ich jetzt die Klasse kommentiert und Informationen zur Lizenz hinzugefügt. An der Funktionalität hat sich nichts geändert. Die aktuelle Version 1.0.5 ist unter folgender URL zu finden: http://bohuco.net/labs/php-websocket-class/lib/WebSocketServer1.0.5.php.txt

Read the rest of this entry »