web 2.0

How to use PHP & Get Now Date Time

How to use PHP & Get Now Date Time This function will be using PHP and  Get Now Date Time from a web server.

ShotDev Focus:
- Get date now

Example

php_datenow.php


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<?php
echo date("Y-m-d H:i:s");
?>
</body>
</html>

Create a php file and save to path root-path/myphp/

Run
http://localhost/myphp/php_datenow.php

Screenshot

PHP DateNow
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.