PHP Tutorials

How to Install PHP on Windows

We've previously shown you how to get a working local installation of Apache on your Windows PC. In this article, we'll show how to install PHP 5 as an Apache 2.2 module. Why PHP? PHP remains the most widespread and popular server-side programming language on the web.

PHP Date and Time

The PHP date() function is used to format a date and/or a time. Syntax: date(format,timestamp); ParameterDescriptionformatRequired. Specifies the format of the timestamptimestampOptional. Specifies a timestamp. Default is the current date and timeEx: <?php echo "Today's date is :"; $today = date("d-m-Y"); echo $today; ?> Output: