Strtotime It converts the date into unix time stamp format. <?php echo $dateTime=strtotime(“13-02-2016”); ?> OUTPUT To add no. of days in current date <?php $currDate = date(‘Y-m-d’) ; // 2016-04-02 $dateTime=strtotime(“$currDate + 5 days”); echo date(“Y-m-d”, $dateTime); ?> OUTPUT You ...
phpsupport | phpsupportdesk Latest Articles
How to produce forget password recovery method with PHP?
pHpSupportHere we need to create two pages connect.php forgotpassword.php file 1:-connect.php <?php $connection = mysql_connect(‘localhost’, ‘root’, ”); if (!$connection){ die(“Database Connection Failed” . mysql_error()); } $select_db = mysql_select_db(‘test’); if (!$select_db){ die(“Database Selection Failed” . mysql_error()); } file 2:- forgotpassword.php <?php ...
How to upload zip file in php?
pHpSupportIn this post you will learn how to upload zip file into a folder using HTML form in PHP. Firstly you have to create simple HTML form. HTML Code <form action=“upload.php” enctype=“multipart/form-data” method=”post”> <input type=“file” name=“zipFile” accept=“zip/*”> <input type=“submit” name=“Submit” ...
How can we check current date & time of PHP server?
pHpSupportWe can check the PHP server time by using the following code date(“Y-m-d H:i:s”);
Tips to remove file from server – PHP
pHpSupportIn this post you will learn some basics to remove file from server. Please check the code given below. This will help. You just need to use the following function Unlink(FILENAME); Here FILENAME will be the path of file with ...
What is the difference between include and require in PHP?
pHpSupportWhat is the difference between include and require in PHP? Require – If the file is not found, then it will return fatal error and will put a halt on execution. Include – If the file is not found, then ...