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 945561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:46:19+00:00 2026-05-15T22:46:19+00:00

Is there a way to determine how long it takes a web page, and

  • 0

Is there a way to determine how long it takes a web page, and all it’s content, to load with PHP?

I have already tried this:

$time_start = microtime(true);

(All the content of the web page here)

$time_end = microtime(true);
$time = $time_end - $time_start;
echo $time;

However, the problem with this (as far as I can tell) is that I’m only calculating the time it takes the php script to execute. This doesn’t factor in any images or videos that are on the page.

Is there a way to determine how long it takes a web page to load including images or videos using php?

Basically what I’m trying to do is test the speed of my server with out factoring in my connection speed.

  • 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-15T22:46:19+00:00Added an answer on May 15, 2026 at 10:46 pm

    You might consider ab (ApacheBench). It’s for testing the performance of your web server, but you can run it against a particular URL if you’re just concerned about one page. One advantage is that it can run from the command line and issue multiple requests in parallel, enabling you to do some kind of load testing.

    If you want to factor in how long it takes to actually load on the browser, you’ll need some kind of javascript solution. One approach with code is presented in the article, Optimizing Page Load Time, which is worth reading.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to determine programmatically, using Python, which web page is currently
Is there a way to determine programmatically, using Python, which web page is currently
Is there any way to determine a page numer (in paged list), that contains
Is there a way to use javascript to determine how long someone was looking
Is there a way I can determine how long an application pool (in IIS7)
Is there a way to determine what will be the destination lat/long if I
Is there a way in code to determine if a Web control contains server
I'd like to find a way to determine how long each function in PHP,
Is there any way to determine the local culture of a PC (such as
Is there any way to determine if the mouse scrolls up or down using

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.