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 |
Explain me difference between mysql_connect and mysql_pconnect?
What is the difference between php and java?
Explain how is it possible to set an infinite execution time for php script?
What is is_null() in php?
Explain what does $_files means?
What good is polymorphism?
Do you know how to get the ip address of the client?
What is action hooks and filter hooks?
How can I reverse sort an array keeping the correlation between the index and value?
2 Answers Rushmore Consultancy,
"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.
What changes to done in PHP.ini file for file uploading?
Tell me how can we get the error when there is a problem to upload a file?