View Full Version : PHP Errors (+REP)
iLogan
24-04-2011, 03:58 PM
Hiya Guys,
I'm having some technical problems :|.
Does anyone know why this is happening?
My code is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
include("remel.php");
echo "Hello World!";
?>
</body>
</html>
It then outputs the include but also an error:
http://s3.amazonaws.com/awesome_screenshot/554700?AWSAccessKeyId=0R7FMW7AXRVCYMAPTPR2&Expires=1303660967&Signature=0rUTAoGPHsA%2FC6zkvNn%2F4rDHrEA%3D
triston220
24-04-2011, 04:14 PM
What's the error? What's the contents of remel.php?
iLogan
24-04-2011, 04:17 PM
It's just a normal php file, it outputs the file fine but I still get that error :S
triston220
24-04-2011, 04:28 PM
It's just a normal php file, it outputs the file fine but I still get that error :S
What's the error?
iLogan
24-04-2011, 04:29 PM
http://awesomescreenshot.com/0eabw0c43
triston220
24-04-2011, 04:32 PM
http://awesomescreenshot.com/0eabw0c43
There's an issue in remel.php. Can you post the source please?
iLogan
24-04-2011, 04:38 PM
remel.php:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Welcome Home.</title>
<style type="text/css">
body,td,th {
font-family: Tahoma, Geneva, sans-serif;
font-size: 36px;
}
body {
background-color: #FF7400;
background-image: url();
background-repeat: no-repeat;
}
</style>
</head>
<body>
<center>
<?php
$day = 06;
$month = 06;
$year = 2011;
$hour = 00;
$event = "My birthday";
$calculation = ((mktime ($hour,0,0,$month,$day,$year) - time(void))/3600);
$hours = (int)$calculation;
$days = (int)($hours/24);
?>
<p>Hi, welcome to my site, I haven't really got the time to design a full website, you get me <span class="ita">brah</span>? </p>
<br>
It's my bithday in <?php echo $days?> days, woo.
<br>
<p class="tiny">What you gonna get me? LOL</p>
<center><font color="#FFFFFF"><font size="2" face="Verdana">
<b>Things I like:</b> Rihanna, Starbucks (Mocha Frappuccino), Amusement Parks, Going to the Mall, Mtn Dew, Designing Websites, Root Beer, Coke Floats, Hot Dogs, My Pets, McDonalds, Kicks, Radio Presenting, Money, Internet, Skins, Business, Slushies, Big Brother, Channel 4, Hannah (from TP), Tweeting, Contact Lenses, Lucky Charms, Fluff, Wonka Nerds, Mello Yello (kinda), Family Guy, Come Fly With Me, MPD, Sour Patches, vBulletin, Pop Tarts, Kanye West, Nero, Nicki Manaj, Pancakes, Waffles & Coding. </font>
</center>
</body>
</html>
triston220
24-04-2011, 04:47 PM
Try
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Welcome Home.</title>
<style type="text/css">
body,td,th {
font-family: Tahoma, Geneva, sans-serif;
font-size: 36px;
}
body {
background-color: #FF7400;
background-image: url();
background-repeat: no-repeat;
}
</style>
</head>
<body>
<center>
<?php
$day = 06;
$month = 06;
$year = 2011;
$hour = 00;
$event = "My birthday";
$calculation = ((mktime ($hour,0,0,$month,$day,$year) - time())/3600);
$hours = (int)$calculation;
$days = (int)($hours/24);
?>
<p>Hi, welcome to my site, I haven't really got the time to design a full website, you get me <span class="ita">brah</span>? </p>
<br>
It's my bithday in <?php echo $days?> days, woo.
<br>
<p class="tiny">What you gonna get me? LOL</p>
<center><font color="#FFFFFF"><font size="2" face="Verdana">
<b>Things I like:</b> Rihanna, Starbucks (Mocha Frappuccino), Amusement Parks, Going to the Mall, Mtn Dew, Designing Websites, Root Beer, Coke Floats, Hot Dogs, My Pets, McDonalds, Kicks, Radio Presenting, Money, Internet, Skins, Business, Slushies, Big Brother, Channel 4, Hannah (from TP), Tweeting, Contact Lenses, Lucky Charms, Fluff, Wonka Nerds, Mello Yello (kinda), Family Guy, Come Fly With Me, MPD, Sour Patches, vBulletin, Pop Tarts, Kanye West, Nero, Nicki Manaj, Pancakes, Waffles & Coding. </font>
</center>
</body>
</html>
iLogan
24-04-2011, 05:02 PM
Thanks <3
What did you change?
+REP
triston220
24-04-2011, 05:05 PM
Thanks <3
What did you change?
+REP
No problem. I just removed "null" from the time() function.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.