emsy Posted April 27, 2010 Report Share Posted April 27, 2010 Kā jau nosaukumā minēts, es vēlos izzināt iespēju noteikt lapas ielādes, vai requestu sūtīšanas laiku, lai nu kas tas arī būtu, kas pēdējā laikā kā esmu pamanījis ir visādu webu footeros iesprausts. Quote Link to comment Share on other sites More sharing options...
vitao.web Posted April 27, 2010 Report Share Posted April 27, 2010 šitā kkā: <?php $endtime = microtime(); $endarray = explode(" ", $endtime); $endtime = $endarray[1] + $endarray[0]; $totaltime = $endtime - $starttime; $totaltime = round($totaltime,5); echo "Lapas ielādes laiks $totaltime sekundes"; ?> Quote Link to comment Share on other sites More sharing options...
codez Posted April 27, 2010 Report Share Posted April 27, 2010 Ja priekš paša vajadzībām, tad firebug uzrāda lapas ielādes laikus. Quote Link to comment Share on other sites More sharing options...
emsy Posted April 27, 2010 Author Report Share Posted April 27, 2010 Nē, es gribu, lai visi var redzēt :) Quote Link to comment Share on other sites More sharing options...
briedis Posted April 27, 2010 Report Share Posted April 27, 2010 Viens ir laiks, kad lapa tiek nopārsēta, otrs ir laiks, kamēr viņa atnāk līdz lietotājam :) Quote Link to comment Share on other sites More sharing options...
emsy Posted April 27, 2010 Author Report Share Posted April 27, 2010 vitao.web, nav definēts $starttime :/ Quote Link to comment Share on other sites More sharing options...
briedis Posted April 27, 2010 Report Share Posted April 27, 2010 vitao.web, nav definēts $starttime :/ Tak pakustini smadzenes. $starttime = microtime(); tikai pašā koda augšgalā... Quote Link to comment Share on other sites More sharing options...
vitao.web Posted April 27, 2010 Report Share Posted April 27, 2010 Jā ātrumā pazaudēju :P Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.