TO DISPLAY THE CURRENT DATE <?php $current_date = date("Y-m-d"); echo $current_date; ?> OUTPUT If you want to show current date with Hours, Minutes and Seconds. Then try the following code. <?php $current_date = date("Y-m-d H:i:s"); echo $current_date; ?> OUTPUT If ...
phpsupport | phpsupportdesk Latest Articles
Echo & Print
pHpSupportTwo basic ways to get output in PHP are Echo and Print. Echo and Print are most likely same. Both are used to output data to the screen. But Echo is faster than Print. To print some value in PHP ...
PHP Introduction
pHpSupportPHP Introduction :- Earlier PHP comes out to be a small open source project. More and more people found it useful. The first version of PHP was unleashed in 1994 by Rasmuslerdorf. PHP in itself is recursive acronym for “PHP: ...
How to use Ajax using jQuery in PHP?
pHpSupportHow to use Ajax using jQuery in PHP? Firstly, you have to include the <script src=”https://code.jquery.com/jquery-1.12.0.min.js”></script> before </head> Or use the latest jQuery version as required. Then, use the main content of the page as below code: <div id=”content”> <ul> ...
How to get the list of file names in a folder in PHP?
pHpSupportIn PHP5, PHP7 it is easier to find the name of files. We are having the function using which we can find the names of the files under a specific folder. You can use the: <?php $dir = ‘C:/xampp/htdocs/phpSupport/questions/doctopdf/’; ...
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” ...
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 ...