Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6725601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:49:39+00:00 2026-05-26T09:49:39+00:00

I am quite confused whether is it possible to get the request date on

  • 0

I am quite confused whether is it possible to get the request date on HTTP Request. Like in the Response header:

Date: Thu, 20 Oct 2011 03:03:40 GMT

I tried var_dump(apache_request_header()) and print_r($_SERVER) to attempt if the request date is in there, but no luck.

Any ideas? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:49:39+00:00Added an answer on May 26, 2026 at 9:49 am

    apache_request_header does not return the Request Date/Time. It mainly has the following information

    Accept: */*
    Accept-Language: en-us
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0
    Host: www.example.com
    Connection: Keep-Alivev
    

    The best way to find out when the page was requested is to use.

    $_SERVER[’REQUEST_TIME’] 
    

    Using $_SERVER is more reliable and uses less resources.

    EDIT

    $DT = date("D, d M Y H:i:s", $_SERVER['REQUEST_TIME']);
    echo "Time page was requested: ",$DT;
    

    Will output something like the folowing

    Time page was requested: Thu, 20 Oct 2011 23:02:29
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am quite confused. I should be able to set <meta http-equiv=X-UA-Compatible content=IE=edge />
I'm quite confused about handling of Key http://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx in a KeyEventArgs. For example: I
I am a quite confused now using mysql and unable to get things work
I am quite confused on whether where to look for the solution on this
I'm quite confused by something. I've got 2 select lists, and if you choose
I'm quite confused about the basic concepts of a Hash table. If I were
I'm quite confused about several books in .NET that I have read. Would someone
I am quite confused with how to effectively use the Html.DropDownList helper for ASP.NET
I am quite confused about the difference between an index on table and index
I read Scott Meyers' article on the subject and quite confused about what he

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.