how to get server date and time?
Answers were Sorted based on User's Feedback
Answer / amol
By Using function Date in php
Definition and Usage
The getdate() function returns an array that contains date
and time information for a Unix timestamp.
The returning array contains ten elements with relevant
information needed when formatting a date string:
* [seconds] - seconds
* [minutes] - minutes
* [hours] - hours
* [mday] - day of the month
* [wday] - day of the week
* [year] - year
* [yday] - day of the year
* [weekday] - name of the weekday
* [month] - name of the month
| Is This Answer Correct ? | 16 Yes | 6 No |
Answer / arya
Try following queries
1] get date time
"SELECT NOW()"
2] get time
"SELECT CURTIME()"
3] get date
"SELECT CURDATE()"
| Is This Answer Correct ? | 12 Yes | 9 No |
How can we optimize or increase the speed of a mysql select query?
What is indexing how many types?
3 Answers DLF, Infosys, Net Solution, Vcare,
How to check a variable is array or not in php?
What is a php certification?
Explain some of the php string functions?
Is empty check in php?
What is put method in php?
What is php compared to html?
What are differences between PECL and PEAR?
Create a PHP web script with the following attributes: on start, three HTML form elements are shown: an string input field, a checkbox field, a dropdown/pull down list with 5 elements and a submit button. On submission, the form should be redisplayed (while remaining all options/inputs as the user has selected/entered them). Additionally, the selections/inputs of the user should be displayed in text. Please solve this without the use of any external libraries.
what do you mean by php.ini file ?????????
What are Routines?