Tüm nesne dosya boyutu bir html sayfası içinde tanımlanmış ((resim, css, nesneler ve komut)) nasıl belirleneceği

0 Cevap

Is there way to determine filesize of html file forexample i have a url

http://url/item/id/1

Bu url dolu olduğu zaman ben dosyalarının boyutunu belirleyebilirsiniz

Ben Kb sayfanın sonunda 0.268 saniyede yüklendi sayfa 256 göstermek istiyorum

güncellemeleri deneyin

localhost / test / index.php

echo filesize("http://localhost/testing/testing.html");

localhost / test / testing.html üzerinde

<html>
    <head>
    </head> 
    <body>
        <img src="test.jpg"/>
    </body>
</htm>

apache error.log üzerinde

 [Fri Dec 31 14:46:05 2010] [error] [client ::1] PHP Warning:  filesize(): stat
 failed for http://localhost/testing/testing.html in /var/www/testing/index.php 
 on line 4

index.php i yaparsanız

echo filesize("/var/www/testing/testing.html");

sonra ben herhangi bir görüntü olmadan 80 byte olsun

0 Cevap