Solved

How to monitor my website ?

Posted on 2003-11-09
5
210 Views
Last Modified: 2008-03-06
Hi all,

I want to monitor my website by testing the access to several pages. Moreover I want to know the time it took to access the server from my browser and the size of the page and all the statistics available.

It is possible with PHP ? If so, how ?

TIA
0
Comment
Question by:Richard Coffre
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:lozloz
ID: 9710617
hi,

depends on what you want to monitor really... you can't measure the time taken for your browser to access the server because the server holds the php so it would be impossible for it to count the time taken for a connection to be established between you and the server. if you want to work out the time taken to generate a page in php, then that's possible. i don't know of any way to work out the file size of a php file after processing other than if you stored all of the content in a variable, counted the characters at the end and divided this by 1024 to get the number of kilobytes..

cheers,

loz
0
 
LVL 7

Expert Comment

by:kohashi
ID: 9714221
http://www.alertra.com - they might be able to help with monitoring your server.  You could potentially write a script to do it.  Pricing starts at 99 cents/month.

hope that helps,
-kohashi
0
 
LVL 1

Author Comment

by:Richard Coffre
ID: 9730004
More information, I want to know :
- if a page is available ?
- the time to access to it like a "ping" command .
0
 
LVL 7

Accepted Solution

by:
kohashi earned 250 total points
ID: 9731086
www.alertra.com offers those.  Please look again.
They offer TCP, http, ftp, pop, and others...
hope that helps,
-kohashi
0
 
LVL 13

Expert Comment

by:lozloz
ID: 9732708
hi,

if you want a server -> another server ping command, then that's possible but if you're trying to work out the response time from the server to the user, it might be a bit more difficult considering the user might have a firewall blocking incoming connections.. anyway i think you would probably achieve this using $pingtime = exec("ping " . $_ENV["REMOTE_ADDR"]); or something

i still don't really understand how you're wanting to run these stats.. are you intending to have php installed on your machine to monitor a remote server?

loz
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now