Jump to content

Archived

This topic is now archived and is closed to further replies.

madspof

PHP doesn't output a response can anyone help

Recommended Posts

I have created this script and i cannot not get it to work anyone that could fix it and point out were i went wrong I would be very gratefull.

<html>
<head>
<title></title>
<META HTTP-EQUIV="refresh" content="60;URL=status1.php">
<style type="text/css">
<!--
body {
background-image: url(navi.jpg);
}
-->
</style>
<!-- The closing HEAD tag is right below this -->
</head>
<body bgcolor="white">
<?php
$hour = date('i/s');
$time = 10/00
if ($hour <= $time) {
echo "It's before ten minutes";
}
 
else { echo "Its past ten minutes";
}
?>
</body>
</html>

Share this post


Link to post
Share on other sites
[code]<?php

$minutes = date('i') + date('s')/60;
if ($minutes <= 10) {
  echo "It's before ten minutes" . $minutes;
}
else {
  echo "Its past ten minutes" . $minutes;
}

?> [/code]

Share this post


Link to post
Share on other sites
I was calculating minutes. So, if you have 9 minutes and 30 seconds you can't just add them together - you would have 39.

9 minutes + 30 seconds/60 = 9.5 minutes.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.