Monthly Archives: September 2010

New website with simple pictures from Albania is a new website which will have photos from Albania. Actually there are only photos from Tirana (the capital).

Posted in Internet | Leave a comment

PHP extract the first x characters of a text

This function extracts the first x characters of a given text, which we get from a database. This is usually performed on posts on a blog, where you don’t want to display the whole post in the homepage, but just let’s say 500 characters of the post. Ok here is the function: function extract($post_id, $length) […]

Posted in PHP/MySQL | 1 Comment