Tag Archives: PHP

Regular expressions from noob to ninja (part I)

I for one have to admit, one of my worse flaws as a web developer was not being able to completely work with regular expressions.
There, I said it. I would just normally find a working RE on the web and past it right on my code. However, you have to agree with me, in that, regular expressions are somewhat hard to read and understand, even some advanced users have difficulties reading some RE expressions.
But what they bring can be a time safer and it’s a really great tool that should be under any webdev belt.


Read more

How to simulate digg comments style

diggcomments Today we will play (once again) with jQuery.
This time we will simulate the digg’s comment style, scroller style. I mean, let’s imitate how digg shows the “more” comments with jQuery (Ajax) and PHP.

Read more

How to create a simple MVC framework in PHP

php_mvc
Today we will create an MVC framework in PHP. This will be very simple but will allow us to understand how this works.

MVC was originally used over the GUI desktop applications, but recently (not so recent) with the growth and maturity of web languages, started appearing some frameworks drawn with this architecture.


Read more