- Impact
- 18
Hi. I want to find out if these are quicker, slower or if there is no difference...
Would changing this:
to this:
be any quicker (bearing in mind that code like this appears many places in my scripts)
and would this:
be any quicker as one long $echo variable? ie:
??? Thanks
Tom
Would changing this:
PHP:
$message = "<table>
<tr>
<td rowspan=\"2\"><img src=\"images/icons/error.gif\" alt=\"Six - Error!\" /></td>
<td><b>Error</b></td>
</tr>
<tr>
<td>To increase relevancy Six only shows upto the <b>1000</b>th result (you requested $start)</td>
</tr>
</table>";
PHP:
$message = "<table><tr><td rowspan=\"2\"><img src=\"images/icons/error.gif\" alt=\"Six - Error!\" /></td><td><b>Error</b></td></tr><tr><td>To increase relevancy Six only shows upto the <b>1000</b>th result (you requested $start)</td></tr></table>";
and would this:
PHP:
$echo .= "<td width=\"33%\" class=\"gray_small\" align=\"center\"><a href=\"image.php?qs=";
$echo .= urlencode($_SERVER['QUERY_STRING']);
$echo .= "&thumb=";
$echo .= urlencode($result['ResultSet']['Result'][$anum]['Thumbnail']['Url']);
$echo .= "&site=";
$echo .= urlencode($result['ResultSet']['Result'][$anum]['RefererUrl']);
$echo .= "&title=";
$echo .= urlencode($result['ResultSet']['Result'][$anum]['Title']);
$echo .= "&url=";
$echo .= urlencode($result['ResultSet']['Result'][$anum]['Url']);
$echo .= "&size=";
$echo .= urlencode($result['ResultSet']['Result'][$anum]['FileSize']);
$echo .= "&format=";
$echo .= urlencode($result['ResultSet']['Result'][$anum]['FileFormat']);
$echo .= "&h=";
$echo .= urlencode($result['ResultSet']['Result'][$anum]['Height']);
$echo .= "&w=";
$echo .= urlencode($result['ResultSet']['Result'][$anum]['Width']);
$echo .= "\"><img src=\"";
$echo .= $result['ResultSet']['Result'][$anum]['Thumbnail']['Url'];
$echo .= "\" /></a><br />";
PHP:
$echo .= "<td width=\"33%\" class=\"gray_small\" align=\"center\"><a href=\"image.php?qs=".urlencode($_SERVER['QUERY_STRING'])."&thumb="...
??? Thanks
Tom





