Solved

How to monitor my website ?

Posted on 2003-11-09
5
211 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

920 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

14 Experts available now in Live!

Get 1:1 Help Now