Articles » Web Design

Display latest Twitter tweets with PHP

Earlier this year we wrote an article showing a PHP function to display latest Twitter tweet. While that works well for displaying a single tweet we recently needed to display the latest 5 Twitter tweets on our website. The code below shows a simple way to do this. < ?php $doc = new DOMDocumen...

How to check what version of PHP your server is running

There are several ways how you can check the version of PHP running on your web server. If you already are comfortable in writing a PHP file, you can simply create a php file with this content in it: Say you named it phpinfo.php, you would just need to point your browser to: http://www.[you...

HTML Link within a page

Generally links are used to navigate to a web page where you will be taken to the top of the page. Thats great but not if the content you want to link to is buried further down the page. To code this choose the exact spot on your web page you want to send your link to then select an element near i...

PHP function to display latest Twitter tweet

We decided to add our latest Twitter tweets to our home page as we like to micro blog. The question was how do we do it? Twitter has various methods for data retrieval including, XML, RSS and their own API feeds that we could use. After looking at them all we decided to use the XML feed as it seeme...

PHP function to summerise content in whole words substr

When using content management systems or data stored in a database to populate a web page we often only require part of the data or a short summary to be displayed. Typically most systems use a function based around PHP's substr function to shorten the data. This however has disadvantages as often w...

Webmasters Reference Links

Specifications HTML 4.01 Specifications ISO-HTML Specification XHTML 1.0 Specifications Web Content Accessibility Guidelines1.0 Cascading Style Sheets - level 1 (CSS1) Cascading Style Sheets - level 2 (CSS2) Document Object Model (DOM) Level 1 Specification ...

Mod rewrite Basics for SEO

Mod_rewrite is an Apache module. Mod_rewrite is a great way to make a websites URL's search engine friendly. The search engines don't like coming across a page with question marks in the href like 'index.php?page=home' and with mod_rewrite I will show you how that is possible. This module can ch...

Useful 404 error pages

After reading a few recent articles on custom 404 error pages we decided to come up with a similar system for ourselves. It seems many web designers and web design company's for that matter still don't use or acknowledge the importance of 404 error pages. For the website user a simple error page...


Captcha Image