Date And Time Operations And Commands In PHP Programming Language On LocalHost

in utopian-io •  7 years ago  (edited)

Date And Time Operations And Commands In PHP Programming Language On LocalHost

PHP is an open source programming language. We can use NotePad++ for coding with PHP.

What Will I Learn?

  • We will learn how to write PHP language on the NotPad ++ program.
  • We will learn how applications will run on LocalHost that we have done in PHP Programming Language.
  • We will learn what is the date commands and how can we use them.
  • Also we will learn what is the time commands and how can we use them.
  • We will learn how can we use date and time commands on our pages.
  • We will learn date commands parametres.
  • Also we will learn time commands parametres.

Requirements

  • We need the WampServer program to run our applications on LocalHost with PHP language. It is open source application. We can download Wampserver here.
  • We need the NotPad ++ program to write our applications in PHP language. NotPAd++ is an open source program. We can download NotPad++ here
  • Windows 32-64

Difficulty

  • Intermediate

Description

We can write and save our applications with PHP language on NotPad ++ program. You can download the program by clicking on the relevant link In the Requirements section.

We can use the WampServer program to run applications on LocalHost that we have done in PHP language. We can download and use the relevant program by clicking the relevant link in the requirements section.

To run our applications through LocalHost, we store in the "www" folder in the "wamp" folder on the "c:" drive of our computer.

With the date and time comands we can learn how many visitors have we got today on our pages. also we can learn date of membership and time to login.

We can learn, What is the number of today on this month.
Also we can learn, which day is today on the month.

We can learn, what is the number of today on this year.
Also we can learn, which month on are we now.

We can learn, how many day has this month.
Also we can learn, time's hour now .

We can learn, time's minutes now.
Also we can learn, time's seconds now.

Commands I Use

  • date("j") for the display number's of today on the month
  • date("l") for the display which day is today on the month
  • date("z") for the display number's of today on the year
  • date("F") for the display which month is it now
  • date("t") for the display how many days has this month
  • date("H") for the display time's hour
  • date("i") for the display time's minutes
  • date("s") for the display time's seconds

Video Tutorial

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Your contribution cannot be approved because it does not follow the Utopian Rules.

  • The video and audio recording must be in HD (min. 720p).

You can contact us on Discord.
[utopian-moderator]