/    Sign up×
Community /Pin to ProfileBookmark

uptime script crashing IIS

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 …..” ;
?>[/code]

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @izlik spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...