|
Hi how can i find out what php scripts take longest to load (in apache)? thanks
Started by ineednotes on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at superuser):
Depending on your scrip....
It should also show you min and max download time for each page.
$mtime = microtime(); $mtime = explode user takes to download each page.
(" ",$stime); $stime = $stime[1] + $stime[0]; //Some Code...
|
|
I have a string with a full URL including GET variables. Which is the best way to remove the GET variables? Is there a nice way to remove just one of them?
This is a code that works but is not very beautiful (I think):
$current_url = explode('?', $current...
Started by Jens Törnell on
, 7 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Regexp execution time: ".$totaltime." seconds; "; $mtime = microtime(); $mtime = explode(" ",$mtime - $starttime); echo "explode execution time: ".$totaltime." seconds; "; $mtime = microtime();....
|
|
I have a website that is running WordPress (PHP and MySQL). A website is very slow responding to requests.
As I look into a web inspector in Safari, the problem doesn't seem to be file sizes.
http://img.skitch.com/20100127-1yjnf586wdr3tx4akk8fj5qwhx.png...
Started by PJ on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
From here :
<!-- put this at the top of the page --> <?php $mtime = microtime $mtime = microtime(); $mtime = explode(" ", $mtime); $mtime = $mtime[1] + $mtime[0]; ....
On the server.
|
Ask your Facebook Friends
|
A client is insisting that we store some vital and complex configuration data as php arrays while I want it to be stored in the database. He brought up the issue of efficiency/optimization, saying that file i/o will be much faster than database queries...
Started by Click Upvote on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
But set a variable:
<?php $mtime = microtime(); $mtime = explode(' ', $mtime); $mtime = $mtime[1 = microtime(); $mtime = explode(" ", $mtime); $mtime = $mtime[1] + $mtime....
|
|
I'm doing a bit of coding, where I have to write this sort of code:
if( array[i]==false ) array[i]=true;
I wonder if it should be re-written as
array[i]=true;
This raises the question: are comparisions faster than assignments?
What about differences from...
Started by jrharshath on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
In 0.0116770267487 seconds Code:
<?php $arr = array(); $mtime = explode(" ", microtime()); $starttime = explode(" ", microtime()); $firsttime = $mtime[1] + $mtime[0]; $totaltime = ($firsttime - $starttime;$i++) if....
|
|
What are the adventages and disadventages of storing JSON data in MySQL database vs. serialized array?
Started by Inez on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
This is the script I used to test:
<?php function runTime(){ $mtime = microtime(); $mtime = explode(' ', $mtime); $mtime = $mtime[1] + $mtime[0]; return $mtime; } ?> <pre> <?php ....
|
|
Hi,
This is my second post on this issue.
I thought I had cleared out the intruder. But I was wrong.
My site, http://themastercleanse.org is hacked, and hijacked.
It's a quality site, written nearly completely by myself. It's ranked #1 for 5 years. It...
Started by TheMasterCleanse on
, 17 posts
by 2 people.
Answer Snippets (Read the full thread at google):
In short, they're using html verification = $mtime[1] + $mtime[0]....
|