Counting with PHP and ASP 
Saturday, November 15, 2008, 01:39 PM - PHP, ASP, Tech-News

The machine: Intel Core 2 Duo Processor 1.8GHz, 2GB RAM
OS: Microsoft Vista Home Premium, IIS 7.0
Scripting Languages: PHP 5.2.6, ASP 3.0
Senario: Test a loop to see the time results...

Here is the ASP code...

<%
Dim i, st

st=Now()

For i=0 To 50000000
Next

response.write st & "<br />"
response.write Now()
%>


Here is the PHP code...

<?php
set_time_limit(150);

$st=date("H:i:s");

for ($i=0; $i<=50000000; $i++) {
}

echo $st . "<br />";
echo date("H:i:s");
?>


Results...
Loop PHP Start PHP End ASP Start ASP End
0-50.000.000 19:42:42 19:42:47 15/11/2008 7:43:07 ìì 15/11/2008 7:43:10 ìì
0-100.000.000 19:45:38 19:45:49 15/11/2008 7:45:29 ìì 15/11/2008 7:45:35 ìì
0-1.000.000.000 19:48:46 19:50:39 15/11/2008 7:47:21 ìì 15/11/2008 7:48:18 ìì

The next step is to test the PHP script with Apache!

kanenas.net

add comment   |  related link   |   ( 3 / 74 )

TechEd Developers - 10-14 November 2008, Barcelona, Spain  
Tuesday, October 28, 2008, 06:45 AM - NEWS !, ASP, SQL, Tech-News, .NET

Microsoft Tech·Ed EMEA 2008 Developers


TechEd Developers - 10-14 November 2008, Barcelona, Spain

Microsoft Tech·Ed EMEA 2008 Developers is the Microsoft premier technical education conference just for developers. For five days, you and more than 4,000 of your peers have countless opportunities to explore about the latest cutting-edge technologies from Microsoft.

Powered by
kanenas.net

add comment ( 10 views )   |  related link   |   ( 3 / 81 )

Driving from Masai Mara to Naibori 
Thursday, September 4, 2008, 04:30 AM - NEWS !



Full of adventure was the trip from Masai Mara to Nairobi !
See for yourself !!!
;-)

kanenas.net

add comment   |  related link   |   ( 3.3 / 149 )

KENYA - Carnivore Restaurant (August 2008) 
Wednesday, September 3, 2008, 05:18 PM - NEWS !



How about some crocodile please... roasted on traditional Masai swords (skewers)!

Carnivore Restaurant (Nairobi)

kanenas.net

add comment ( 3 views )   |  related link   |   ( 3.3 / 137 )


Next