Popular Posts

Showing posts with label source code. Show all posts
Showing posts with label source code. Show all posts

Monday, April 6, 2009

How to display the last day of the month on your website?

A very easy way to display the last day of the month on your website with a PHP code that you will add in your document. All you have to do is to add “$m” to refer to the month and “$y” to the year. To be able to display the day, you can use the “t” code as explained in the example below:

$ month = mktime (0, 0, 0, $ m, 1, $ y);
setlocale ( 'LC_ALL', 'en_US');
echo "month". date ( "FY", $ month). "owns". date ( "t", $ month). "days";
>

How to view your source code ??

Yo view an HTML document (also known as the 'source code'), first open your web browser. Then go to a page whose source you would like to see and click View on the menu bar at the top of the screen. Next, select Source if you're using Internet Explorer

View Source in IE

or Page Source if you're using Firefox.

View Source in Firefox

The HTML document containing the source code of that page will appear on the screen.

HOME : SHARE YOUR IDEAS