About: thePHPHero


Posts by Celso:

Custom PHP Framework

Hi there, Welcome to my tutorial on how to build your own custom framework using PHP and Symfony components. This tutorial will be made up of a collection of posts, which aims to closely describe the process of combining different sets of components into a complete (and hopefully) easy to use framework. Right off the …
Read More


So you are trying to use PHP to catch a line break from a textarea, for example? Looks like you’ve been banging your head for hours! Don’t forget that \n, \r, \t, etc. are only interpolated as special characters inside double-quote string literals. That being said, you might want to do this:   instead of this: …
Read More

UI Faces

When creating UI mock-ups or custom templates for my clients, I often need to portray users in form of avatars. This has always been a rather tedious task, because I find myself faced with the dilemma of either having to commit copyright infringement or  handing in something, which I wouldn’t like to have myself. I …
Read More

translate wordpress poedit

Working with clients from different continents  is an everyday thing here at thePHPHero. More often than not we are presented with the task of creating WordPress-based websites, which need to be delivered in multiple languages. In this article we will teach you how to translate WordPress theme with a neat and free software called Poedit. …
Read More

register domain in China

Registering a domain in Mainland China can be pretty tricky. Due to strong government control over the web, it is darn right impossible to register a Chinese domain without having to deal with a huge amount of hassle. While in the West, the whole process of registering a domain is pretty much straight forward and …
Read More