Object not found Error 404 - path issues ?!?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Object not found Error 404 - path issues ?!?

Postby IndaSuit » 11. June 2015 22:26

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>
IndaSuit
 
Posts: 3
Joined: 11. June 2015 22:15
Operating System: Windows 8.1

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

Postby Nobbie » 12. June 2015 12:22

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)
Nobbie
 
Posts: 8768
Joined: 09. March 2008 13:04

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

Postby IndaSuit » 12. June 2015 14:41

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
IndaSuit
 
Posts: 3
Joined: 11. June 2015 22:15
Operating System: Windows 8.1

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

Postby glitzi85 » 12. June 2015 15:20

You have in your 57_get.php a link to get.php. Does the latter exist?
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

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

Postby IndaSuit » 12. June 2015 16:03

Hi Glitzi85...well, you just give me an idea why I am getting the Error 404.

Case Closed - Thanks !
IndaSuit
 
Posts: 3
Joined: 11. June 2015 22:15
Operating System: Windows 8.1


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 38 guests