How to use a server data date and time on your php file? Print

  • 0

Step 1: Login to the cPanel account.

Step 2: Navigate to the section Files > File Manager menu.

Step 3: Click on the php file that you want to display the date and time.

Step 4: Select the files and right click on it, click 'Edit' option.

Step 5: Update the below code on it.

+++

<?php echo date(“l jS \of F Y h(idea)(worry) Aâ€); ?>

++++

Step 6: Click on 'Save changes ' option to apply the changes.


Was this answer helpful?

« Back