Page 1 of 1

Object not found Error 404 - path issues ?!?

PostPosted: 11. June 2015 22:26
by IndaSuit
Hi guys,

A newbie here.

I've spent almost 7 hours trying to solve the issues with the Xampp (v3.2.1 running on windows 8.1) - I really do not want to give up although I am thinking to trow the laptop out of the window.
At the moment I am playing around with some php stuff and every-time I try to run the code attached bellow I get the "Object not found! Error 404".

FYI: I went through the port 80 error and issues with the MySql admin access at the end I managed to get the Xampp working completely fine because I have tried to to some basic php stuff...well, until I tried to run this piece of code (check the snippet below).

I know that Error 404 is not the issue related to my code and it should be a path or something else...Please help me out because I am really sad at the moment - Thanks!

<?php
print_r($_GET);
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>

<?php
$id = 10;
$button = "CLICK HERE NOW";
?>
<a href="get.php?id=<?php echo $id;?>"><?php echo $button;?></a>
</body>
</html>

Re: Object not found Error 404 - path issues ?!?

PostPosted: 12. June 2015 12:22
by Nobbie
IndaSuit wrote:I know that Error 404 is not the issue related to my code and it should be a path or something else..


Yes - and therefore we dont need the code, we need to know

a) where your document is stored (full path and filename)

b) what you entered in your browser (which URL)

Re: Object not found Error 404 - path issues ?!?

PostPosted: 12. June 2015 14:41
by IndaSuit
a) where your document is stored (full path and filename)
C:\xampp\htdocs\demo\57_get

b) what you entered in your browser (which URL)
http://localhost/demo/57_get.php
FYI:
When I enter the text (above) in the browser I can see the "click here now" link but as soon as I click on it I get the 404 error.

Hope this helps

Re: Object not found Error 404 - path issues ?!?

PostPosted: 12. June 2015 15:20
by glitzi85
You have in your 57_get.php a link to get.php. Does the latter exist?

Re: Object not found Error 404 - path issues ?!?

PostPosted: 12. June 2015 16:03
by IndaSuit
Hi Glitzi85...well, you just give me an idea why I am getting the Error 404.

Case Closed - Thanks !