Hallo,
als index.php heb ik dit geupload naar mn webhost:
<?php
if (isset($_GET['page']))
{
switch($_GET['page'])
{
case 1 : echo'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body bgcolor="#353535">
<head>
<title>TEST</title>
<link href="http://vjs.zencdn.net/4.5/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/4.5/video.js"></script>
<!--
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
-------------------------------------------------------------------------
P { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial}
TD { FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: Verdana, Tahoma, Arial}
-->
</style>
</head>
<body>
<center>
<b>TEST</b><br>This is a test to check if this works.</p>
</center>
</body>
</html>';
break;
case 2 : echo"test";
break;
case 3 : echo"<b>another test</b>";
break;
}
}
else
{
include('mainpage.php');
}
?>
als mainpage.php heb ik een gewoon php bestandje die normaal werkt
alles is in de root geupload, maar als ik naar mn website ga, dan wordt er niets geladen en krijg ik een 404 not found error
hetzelfde geldt als ik naar /index.php?id=1 ga, of 2 of 3
zelf ben ik begginend in php en haalde ik de bronnen van:
http://www.codingforums.com/php/56582-how-make-index-php-id%3Dblah.html
en:
http://stackoverflow.com/questions/1100354/how-can-i-echo-html-in-php
waar zou het probleem kunnen zitten?
2.378 views