Firstly, I narrowed it down to the following code:
$Output = SimpleItem("$Heading","",true);
foreach ($TopList as $Player => $Qty) {
$Output .= SimpleItem(WebLink("
$Player","csstats.php?id=" . $PlayerStats[DETAILS][ID][$Player],"bar'
style='CURSOR:crosshair;"),$Qty);
}
print $Output;
This
Ok. A simplified version of the subroutines (still with the same problem
though):
function SimpleList($Data,$MaxStats = "10",$Heading = " ") {
if (is_array($Data)) {
$Output = "";
$Output .= SimpleItem("$Heading","",2);
foreach ($Data as $Player => $Qty) {
$Outpu
> In the following example, which is the one that I'm concerned about,
> the same function is called multiple times in a row (with nothing
> happening in between calls) for different "categories". Basically, the
> function sorts an array and outputs the 10 elements with the highest
> value.
>
> I
Hi all,
I've been running some time trials on some of my PHP functions for a site
I've been putting together, and noticed that the process time is SOMETIMES
extremely high.
Before I continue, let me say that I know that the times can be affected by
other things running on the server, but the resu
4 matches
Mail list logo