Hello, for the past week ive been having w3wp crashes on my windows 2003 server, after getting some help and doing IIS state diagnostic we found that someting in my php code was crashing it everytime someone visited my indexpage, the code was removed. and since 2 day’s back i havent had any crash, the code bellow is the removed code and showed my server uptime, anyone se how this could be crashing my w3wp application?
[code=php]<?php
$uptime = time() – filemtime(“c:pagefile.sys”);
$days = $uptime / 3600 / 24;
$hours = ($days – floor($days)) * 24;
$minutes = ($hours – floor($hours)) * 60;
$seconds = ($minutes – floor($minutes)) * 60;
echo ” Uptime: “.(int)$days.” dagar “.(int)$hours.” timmar “.(int)$minutes.” minuter “.(int)$seconds.” sekunder …..” ;
?>