Archive for the ‘Programming’ Category
PDA and Mobile Phone Programming
In order to create programs for mobile devices, it needs a framework that these are essentially the frame structure of the target system. A framework consists of various default models, which will adjust the program to a particular operating system.
Code written in a compatible editor to display the development environment
Read the rest of this entry »
Introducing HTML 5
HTML5 now be used in nearly every modern browser. But with this you may think, why do something that basically is still difficult to implement especially if you want a website compatible with all browsers or cross browser compatibility.
Future technology for the web is located on HTML 5, where it is seen in the latest browsers have started to adopt it, one of which is iPad that does not support Flash but supports HTML 5, so that some video sites also began to have an HTML version of the previous five in which relying on Flash as a video player.
Example :
<!doctype html> <html> <head> <meta charset="UTF-8"> <title> Example HTML 5 document </title> </head> <body> <p> Text paragraph here.</p> </body> </html>
As XML, with the media type application / xhtml + xml or application / xml, HTML 5 is declared with an additional format :
<?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> ...
New elements in HTML 5
Similar section as h1-h6.
article could be blog entries or writing content.
aside presents supplementary content.
headers can present the title, description, even nav to navigate.
footer footer contains information such as copyright, author, contact, and so forth.
dialogue combined with the dt and dd (as in the FAQ page) can be used to present the conversation.
phenomenal is the use of figure elements, video, audio, source, embed, canvas, and other multimedia files related elements.
Reference
http://en.wikipedia.org/wiki/HTML5
http://www.w3.org/TR/html5/
PHP Date Function
The PHP date() function formats a timestamp to a more readable date and time.
A timestamp is a sequence of characters, denoting the date and/or time at which a certain event occurred.
Syntax
date(format, timestamp)
format : Required. Specifies the format of the timestamp
timestamp : Optional. Specifies a timestamp. Default is the current date and time
PHP Date() – Format the Date
The required format parameter in the date() function specifies how to format the date/time.
Here are some characters that can be used:
• d – Represents the day of the month (01 to 31)
• m – Represents a month (01 to 12)
• Y – Represents a year (in four digits)
Source w3schools