Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP function help please!
Old 07-05-2010, 02:39 PM PHP function help please!
kline11's Avatar
SearchBliss Web Tools

Posts: 1,789
Name: John
Location: USA
Trades: 0
I have a script that calculates page file sizes in KB using the filesize() function. I am trying to find a way to calculate the page load time of the file as well. I have found examples using function microtime() that require the script to be added to the files themselves. Is there a way to use this or another php function that can calculate load time of an external file??? I'm using fopen to do this.

Thanks.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-05-2010, 03:02 PM Re: PHP function help please!
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Not really, you just need to log the microtime before and after the function and calculate it afterwards. You can build a function to log them into a session, global var or static var.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-06-2010, 03:04 AM Re: PHP function help please!
Banned

Posts: 1
Trades: 0
global var or static var
krshez is offline
Reply With Quote
View Public Profile
 
Old 07-06-2010, 07:23 AM Re: PHP function help please!
Experienced Talker

Posts: 41
Trades: 0
Hi,Still i don't face such type of problem, but i think you use date() for that query, & if you still have prob. then just inform here.
sandeep Kumar is offline
Reply With Quote
View Public Profile Visit sandeep Kumar's homepage!
 
Old 07-06-2010, 10:10 AM Re: PHP function help please!
kline11's Avatar
SearchBliss Web Tools

Posts: 1,789
Name: John
Location: USA
Trades: 0
Quote:
Originally Posted by mgraphic View Post
Not really, you just need to log the microtime before and after the function and calculate it afterwards. You can build a function to log them into a session, global var or static var.
Thyanks...I'll give it a try once I "clean up" some other minor issues.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is offline
Reply With Quote
View Public Profile
 
Old 07-16-2010, 02:10 AM Re: PHP function help please!
Experienced Talker

Posts: 41
Trades: 0
Hi, As i get the answer from search engine, I'll Share with you,

function gmicrotime() having functionality to stores time stamps in millisecond by using an array called $mT['all'][] each time it is called.
and if you pass a parameter like, gmicrotime('subprocess'), it also stores the same timestamp in another array $mT['subprocess'][] as well.
I think it's useful for you.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
.
sandeep Kumar is offline
Reply With Quote
View Public Profile Visit sandeep Kumar's homepage!
 
Old 07-18-2010, 10:43 AM Re: PHP function help please!
Junior Talker

Posts: 2
Name: mikemorekean
Trades: 0
I think just need to log the microtime before and after the function and calculate it afterwards. not sure.
from yahoo search engine.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
mikemorekean is offline
Reply With Quote
View Public Profile Visit mikemorekean's homepage!
 
Reply     « Reply to PHP function help please!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.63108 seconds with 12 queries