Click to See Complete Forum and Search --> : PHP
Marek
11-25-2000, 12:42 PM
I have PHP installed, and Linux sees it as a web file format. However, when I execute the script it just comes up blank. Anyone know why?
I am using mandrake linux 7.2.
------------------
www.jedev.com, (http://www.jedev.com,) www.lagunas-jukebox.com (http://www.lagunas-jukebox.com)
witman
11-25-2000, 12:45 PM
Post your script. It may be a programming error. Don't forget to use the code tags.
------------------
Use the source!
The WITMAN Cometh!
Marek
11-25-2000, 12:55 PM
I would doubt its a script error, since it works on other servers, but here it is:
This is just a script I am using to test my install
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
index.html
<html>
<head>
<title>Getting Old!</title>
</head>
<body>
How old are you?<br>
<form action="result.php">
<input name="old" type="text" value=""><br>
<input type="submit" value="Send er in!">
</form>
</body>
</html>
result.php
<?php
if($old > 75)
{
print("Ahh, you should already be dead! Good Job!");
exit;
}
$final = 75 - $old;
print("You are $final years away from estimated death");
?>
------------------
www.jedev.com, (http://www.jedev.com,) www.lagunas-jukebox.com (http://www.lagunas-jukebox.com)
Marek
11-26-2000, 01:43 AM
Does anyone else know why?
------------------
www.jedev.com, (http://www.jedev.com,) www.lagunas-jukebox.com (http://www.lagunas-jukebox.com)