Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: PHP Miscellaneous Page Loading Time Tutorial

Learn how to output the time a page takes to load.

Tutorial Details:

PHP Miscellaneous Page Loading Time Tutorial
Have you ever noticed that lots of websites feature a little "Page loading took x.xxx seconds to load" at the bottom of their pages? It's a pretty simple thing to make and gives your site something that we all love Stats.

Get the time in micro-seconds using the function: microtime() .Turn the micro-time into an array using the explode() function. Add the two parts to the array2.Find the total loading time by taking the time taken at the end of the page from the time taken at the top of the page Round the microtime and return it to the browser Here is the code:
<?
$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$starttime = $m_time;
?>
Put at the bottom of your page.

<?
$round = 3;// The number of decimal places to round the micro time to.
$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$endtime = $m_time;
$totaltime = ($endtime - $starttime);
echo "Page loading took:". round($totaltime,$round) ." seconds";
?>


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
PHP Miscellaneous Page Loading Time Tutorial

View Tutorial:
PHP Miscellaneous Page Loading Time Tutorial

Related Tutorials:

Displaying 1 - 50 of about 2479 Related Tutorials.

Open Source PHP
JavaScript libraries)  Calling PHP file / HTML page is very clean. All... for PHP scripts The main purpose of this tutorial is to kick off the new... and throughout the net regarding PHP. This tutorial will be fairly short, so even
 
PHP Ajax Book
, that helps you find PHP functions, and forward you to the official help page... PHP Ajax Book PHP Ajax Book  ...; AJAX and PHP:  Building Responsive Web Applications is the most practical
 
jQuery to Retrieve Server's Current Time
will be calling a server side PHP script to get the current server time. You can... Server Time program Step 1:       Create php file to that prints... $time_now=date('l M dS, Y, h:i:s A',$time_now); ?> Step 2: Write HTML page
 
PHP Programming Books
, I hope for you to be able to switch to PHP in the same kind of time frame... PHP Programming Books PHP Programming Books...; PHP 5 Power Programming This book
 
Loading delay component in Echo3
Loading delay component in Echo3 Loading delay... tutorial you must have studied about how you can create a server-side application... created an application which will describe how to create delay component loading
 
MySQL Tutorial - SQL Tutorials
version of MySQL at the time of writing tutorial... MySQL Tutorial,Free MySQL Tutorials,MySQL Programming Tutorials,Online MySQL Help for Beginners MySQL Tutorial - SQL Tutorials
 
Array Definition
; This Tutorial illustrates an code example that makes you easy to understand the code in Array Definition. On loading a page, display ( ) function
 
Loading properties from a XML file
XML,XML Tutorials,Online XML Tutorial,XML Help Tutorials Loading properties from a XML file      ... is used to create new DOM parsers. Some of the methods used for loading properties
 
Objective C Tutorial
Objective C Tutorial,Objective C Tutorials Objective C Tutorial        ...;      In this Objective C Tutorial we
 
Javascript array functions
that on loading a page invoke a function display ( ). The function includes an array...;   In this Tutorial we want to describe you a code
 
Javascript array for string
that on loading a page invoke a function display ( ). The function includes an array...;    In this Tutorial we want to describe you a code
 
Beginners Java Tutorial
java Beginner,java Beginners,Beginning java,Beginners Java Tutorial,Java for beginners Beginners Java Tutorial...; This tutorial will introduce you with the Java Programming
 
How to Create JSP Page
it at our Tomcat Tutorial page.       ... How to Create JSP Page How to Create JSP Page...; In this section we will show you how you can create JSP page
 
Beginners Java Tutorial
java Beginner,java Beginners,Beginning java,Beginners Java Tutorial,Java for beginners Beginners Java Tutorial...; This tutorial will introduce you with the Java Programming
 
The Page Directive in JSP Page
The Page Directive in JSP Page The Page Directive in JSP Page          ...;    This section illustrates you about the page
 
Learn Java Quickly, Quick Java Tutorial
on the web server and the user can see the page using any web browser.  Also... the operating system and CPU architecture. JVM is a part of Java Run Time...), then its time to write your first Java program. Create a source code program
 
Page directive attributes
instructions to the container at page translation time. The directive comes in three forms: The page directive is written on the top of the jsp page. Some... Page directive attributes Page directive
 
Struts 2 Tutorial
Programming Tutorials Struts 2 Tutorial  ... Struts 2 Tutorial and Online free training helps you learn new elegant Struts 2... the user id and password is "admin") it displays the welcome page, when
 
Web Programmer
; designing on Java/PHP/.Net. platform. Thorough knowledge of Linux... of Java/PHP/.Net. Advanced database concepts. Proven affinity with large... : platform in-house with a team of 11 full-time developers. The main application
 
Building a Simple EJB Application ?A Tutorial
Building a Simple EJB Application ?A Tutorial Building a Simple EJB Application ?A Tutorial     ... workflow application)  Introduction In this tutorial we will create
 
Get Time Zone
creates a time zone object based on USA. Understand with Example In this Tutorial we... Get Time Zone Get Time Zone...; Time Zone class inherits from a Java.util.time zone. This class represents
 
PHP Jobs
PHP Job, PHP Jobs PHP Jobs  ...; Currently we are looking for PHP programmers to join our development team. You will be involved in the development of websites based on PHP and MySQL. We
 
EasyEclipse for PHP
Eclipse Plugin-Language EasyEclipse for PHP...;    EasyEclipse for PHP contains the tools needed to start developing PHP code: the PHPEclipse IDE, some database tools, as well
 
PHP Jobs at Rose India
PHP Job,PHP Jobs at RoseIndia.net,Job PHP PHP Jobs...;      We are looking for PHP programmers to become part of our dynamic fast growing team. This PHP Jobs
 
PHP Training
PHP Training PHP Training...;    PHP is one of the most popular, free, efficient... websites. After completing this training you will be able to understand PHP
 
OOP Tutorial [first draft]
Java: OOP Tutorial Java: OOP Tutorial [first draft] Table of contents Introduction... Some thoughts and plans for next draft The last page is missing, which
 
Session Last Accessed Time Example
Session Last Accessed Time Example Session Last Accessed Time Example        ... current  access time of session  and last access time of session. Sessions
 
Struts 2 Tutorials for Beginners, Struts 2 Tutorial
Programming Tutorials Struts 2 Tutorial  ... Struts 2 Tutorial and Online free training helps you learn new elegant Struts 2... the user id and password is "admin") it displays the welcome page, when
 
Quartz Tutorial
Quartz Tutorial, Quartz Scheduler, Quartz Job Scheduler Quartz Tutorial        ...;      In this Quartz Tutorial you will how
 
Free PHP Books
Free PHP Books Free PHP Books  ...; PHP 5 Power Programming In this book, PHP 5's co-creator and two leading PHP developers show you how to make the most of PHP 5's industrial-strength
 
Get Time And Date
Get Time And Date Get Time And Date...; The Class  Date provides you  a specific instant in time... and parsing of date string. Understand with Example In this Tutorial we want
 
Show Hyperlink in HTML Page
Show Hyperlink in HTML Page Show Hyperlink in HTML Page... from one page to another page of the web. The anchor (<a>...</a>
 
PHP Web Hosting
PHP Web Hosting,PHP Web Hosting services,PHP Web Hosting Companies,Web Hosting PHP Web Hosting...; PHP is a great scripting language, which is widely
 
Java Server Faces (JSF) Tutorial
JSF Tutorial,JSF Tutorials,Java Server Face,Java Server Faces,Online JSF Tutorial JSF - Java Server Faces Tutorials...;  Complete Java Server Faces (JSF) Tutorial - JSF Tutorials
 
Front Page Web Hosting
Front Page Web Hosting,Frontpage Web Hosting Services,FrontPage Web Hosting,Webhosting Front Page Web Hosting...;   Microsoft Front Page is leading
 
PDT - PHP Development Tools
PDT - PHP Development Tools PDT - PHP Development...;    PDT Project PHP Development Tools About PDT The PDT project is working towards providing a PHP Development Tools framework
 
J2ME Event Handling Example
to handle certain type of events that are generated at the time of loading MIDlet
 
The Complete Spring Tutorial
Spring Tutorial,Java Spring Tutorials,Spring 2.5 Beginners Tutorial The Complete Spring Tutorial In this tutorial I... Spring The latest version of the spring framework at the time
 
Welcome to the Apache Struts Tutorial
- Jakarta Struts Tutorial Struts1 Examples Struts 2 Training! Get... in this tutorial. Struts1 vs Struts2 Struts2 is more powerful... to create user interface form using struts ActionFrom class and jsp page
 
Refresh a Web Page Using In Servlet
page and print the current Date and Time after 10 sec on the browser as a output... Refresh a Web Page Using In Servlet Refresh a Web Page Using In Servlet      
 
VoIP Tutorial
VoIP Toturial VoIP Tutorial   ... to use PCs and Internet for job and free time to communicate each other...;          VoIP Technical Tutorial
 
Life Cycle of a Jsp Page
Life Cycle of a Jsp Page Life Cycle of a Jsp Page...;     Life of the the jsp page is just same.... The life cycle of the jsp page is given below: jspInit(): This method
 
Display image on JSP page using XML
Display image on JSP page using XML Display image on JSP page using XML       ...;       In this tutorial we are going
 
Maven2 Tutorial
Maven2 Tutorial Maven2 Tutorial... Foundation projects. Actually, for a long time there was a need to standardized project... organizations. This tutorial provides you introduction to Maven 2, shifting
 
Rico Tutorial
Rico Tutorial Rico Tutorial               ... JavaScript object , AjaxEngine , for adding HTML page .The Rico it is also responded
 
Create Web Page with jsp
date and time on client browser. For this we will create a simple dynamic JSP page... class is used to get the current date/time for display on JSP page.  Start... Page with jsp         
 
GUI Tutorial I - FIRST DRAFT
Vanilla Java: GUI Tutorial First Draft Table of Contents GUI Tutorial I - FIRST DRAFT Table... after reading this tutorial. The tutorial presents model programs of increasing
 
Get Time Now
the package  java.text.format. The Date class is used to a specific instant time in millisecond time. Understand with Example In this Tutorial we want to describe you... Get Time Now Get Time Now
 
File Upload Tutorial With Examples In JSP
File Upload Tutorial With Examples In JSP File Upload Tutorial With Examples In JSP     ...; This tutorial is very helpful in the developing the project in which you have
 
Precompiling a JSP Page
Precompiling a JSP Page Precompiling a JSP Page... happens at the same time. After compilation the jsp behaves just like a servlet or we... the capability of precompiling a JSP page. To precompile a jsp page, access the page
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.