You are viewing posts from the . website customisationClick to view all posts
Written by Guest Author – Mon 31 Oct 2011
With Web 2.0, website visitors expect a full-featured custom website that uses their location and other information to display a unique website. As a developer or designer, you want to find ways to make your website a unique experience for each visitor. You can use PHP to create a feature-rich, dynamic website for your visitors.
PHP is a scripting language embedded within HTML. A PHP processor module, which reads the script, is located on the web server. The module renders a readable web page, so site visitors do not need special software installed on their own computer to view features on the page. Used on over 20 million web pages, PHP is one of the most popular languages used to create dynamic web pages.
A few of the most popular Web 2.0 websites use PHP to create customized content for their visitors. Facebook, WordPress, Digg and Wikipedia all use PHP to produce websites tailored to each visitor's needs and interests. Web developers can use PHP scripts to pull information from the database about each user, including location and previously saved data.
PHP has many features you can use to customize your website, but listing all of them would make this article too long ,not to mention too boring, to read. You will learn more techniques in future articles, but this article will introduce you to six easy ways to use PHP, even if your experience with PHP is limited.
You can change the appearance of your web page depending on the day or any other factor. For example, show a picture of the sun during the day and a picture of the moon at night. This keeps your website fresh for returning visitors and keeps it interesting.
Place this code between the head tags in the HTML code:
$day = date("w");
$color = array("white", "orange", "purple", "pink", "red", "blue", "green");
Place this piece of code inside the and tags of your HTML to change the color:
ITIL®, PRINCE2®, PRINCE2 Agile®, MSP®, M_o_R®, P3O®, MoP®, MoV® courses on this website are offered by The Knowledge Academy, ATO of AXELOS Limited. ITIL®, PRINCE2®, PRINCE2 Agile®, MSP®, M_o_R®, P3O®, MoP®, MoV® are registered trade marks of AXELOS Limited. All rights reserved.