SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Document size

  1. #1
    SitePoint Member
    Join Date
    Aug 2003
    Location
    Sweden
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Document size

    Hi,
    I've posted this question in the PHP forums and got the reply that I should ask this here instead.. so here we go

    I need to know if there's some way to get the size (in bytes) of the page that has been sent to the visitor of my site. Is this possible?

    Thanks in advance
    / Mattis

  2. #2
    SitePoint Addict xDev's Avatar
    Join Date
    Jul 2003
    Location
    Moncton, New Brunswick, Canada
    Posts
    247
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's wrong with the filesize function?
    http://www.php.net/manual/en/function.filesize.php

    Javascript can do it too (document.fileSize) but only in ie. The server is a cross-browser implementation.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •