Webmaster Forum

Ezilon Directory   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 09-28-2007, 12:30 PM   #1 (permalink)
Contributing Member
 
skyBlue's Avatar
 
Join Date: 03-18-06
Posts: 64
iTrader: 0 / 0%
Latest Blog:
None

skyBlue is liked by many
Send a message via MSN to skyBlue
How demanding is my PHP script?

Can someone explain to me, how could i know how much server resources is required to execute some php script, i mean how demanding is that script? Without that i'm never sure which way of coding is better than any other. Is there any site where i can test it or some kind of software?

Thanks,
Milan

Last edited by skyBlue : 09-28-2007 at 12:34 PM.
skyBlue is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 09-28-2007, 06:40 PM   #2 (permalink)
Contributing Member
 
Join Date: 09-01-07
Location: Gurgaon, India
Posts: 84
iTrader: 0 / 0%
Latest Blog:
PHP Programming

kaykays is on the right pathkaykays is on the right path
You can time it by adding code at top and bottom of your php files:

Code at top

PHP Code:
function getmicrotime(){ 
   list(
$usec$sec) = explode(" ",microtime()); 
   return ((float)
$usec + (float)$sec); 
   } 
$time_start getmicrotime(); 

Code at Bottom

PHP Code:
$time_end getmicrotime();
$timetaken $time_end $time_start;
echo 
$timetaken
kaykays is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-29-2007, 05:24 PM   #3 (permalink)
Contributing Member
 
skyBlue's Avatar
 
Join Date: 03-18-06
Posts: 64
iTrader: 0 / 0%
Latest Blog:
None

skyBlue is liked by many
Send a message via MSN to skyBlue
Yeah, that could do the work. But i'm looking for more featured option where i can automatically send my scripts to see how demanding is it.

Thanks anyway for reply.
__________________
Funny Videos - Funatico.com
Web Development - skyBlue WebTeam
skyBlue is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-02-2007, 03:51 PM   #4 (permalink)
Contributing Member
 
Join Date: 07-24-06
Posts: 565
iTrader: 1 / 100%
Latest Blog:
None

nasty.web is a jewel in the roughnasty.web is a jewel in the roughnasty.web is a jewel in the roughnasty.web is a jewel in the roughnasty.web is a jewel in the roughnasty.web is a jewel in the roughnasty.web is a jewel in the roughnasty.web is a jewel in the rough
http://www.xdebug.org/ ?
nasty.web is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to deal with immature and demanding person.. potchie Forum Lobby 30 08-24-2007 01:58 PM
Most demanding Blog lizza Blogging Forum 8 02-03-2007 02:31 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:06 AM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.