1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need some help here

Discussion in 'Programming' started by anderenterprise, Oct 14, 2006.

  1. #1
    I hope this the best place to post this question. Could not find a better place.

    I am looking for a way for the general public to know what size a page is that is loaded into my browser window. How many bytes?

    I am working with a traffic exchange owner that wants to limit the size of pages to be allowed to show to other members. I was recommended to this forum from another traffic exchange program. I am so glad I asked the right people. This looks like the place to get many questions answered. Anyway!


    I have tried the File:properties
    It seems that does not show Pics, audio or size of video.

    Also does anybody know of any software out there that would do this on auto pilot?

    Thanks in advance!
    anderenterprise, Oct 14, 2006 IP
  2. RAND0M1ZER

    RAND0M1ZER Greenhorn

    Messages:
    89
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #2
    In most browsers there is an option to save the site. You can usually do this by File > Save, in Firefox I know there is an option to save either just the source or the other elements as well (make sure you choose this one). Then you can check the size in Windows Explorer.
    RAND0M1ZER, Feb 26, 2013 IP
  3. Nedzad Mesic

    Nedzad Mesic Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Hi,
    You can use a tool HTTrack Website Copier. When you set out the web page on the server, use this tool to download entire Web page. This way you'll know exactly which is the size of your website.
    Nedzad Mesic, Feb 28, 2013 IP
  4. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,703
    Likes Received:
    48
    Best Answers:
    9
    Trophy Points:
    100
    #4
    Do you mean the size of the page in bytes:
    PHP:
    1. <?php
    2.  
    3. // outputs e.g.  somefile.txt: 1024 bytes
    4.  
    5. $filename = 'index.php';
    6. echo $filename . ': ' . filesize($filename) . ' bytes';
    7.  
    8. ?>
    http://php.net/manual/en/function.filesize.php

    Or the size of the users screen/screen resolution? If you want the screen size, you'll need to use Javascript or JQuery I think.
    scottlpool2003, Feb 28, 2013 IP
  5. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,883
    Likes Received:
    33
    Best Answers:
    51
    Trophy Points:
    100
    #5
    The total size of looking at the page, including images and streams, isn't the size of one file. The page itself may be one file (or it may be multiple files), but each image and each audio or video stream is an additional file. You have to get the filesize of each file, then add them up.
    Rukbat, Mar 5, 2013 IP
  6. Garkoni

    Garkoni Active Member

    Messages:
    213
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #6
    OMG guys you've pulled out a topic dated October 2006.
    I'm pretty sure the TC has found how to calculate a page size by now :-D
    Garkoni, Mar 5, 2013 IP