Problems with the Windows version of XAMPP, questions, comments, and anything related.
by isankah » 18. September 2012 04:42
I am a new user of xampp and new in php, i was introduced php using APM setup, now want i want to use xampp and i moved all my files to xampp but when i try to open my site in the browser i have this error message
(".$query); logout(); include (MAIN_PATH."index.php"); break; case "signup": include (MAIN_PATH."index.php"); break; } }else{ switch($page){ case "Home": include (MAIN_PATH."index.php"); break; default: include (MAIN_PATH."index.php"); break; } } include (INCLUDE_PATH."footer.inc"); ?>
5e1f75ff-c7f6-4951-a455-51146a01bb24
Y2:5e1f75ff-c7f6-4951-a455-51146a01bb24) can someone help me please?
thanks
-
isankah
-
- Posts: 2
- Joined: 18. September 2012 04:32
- Operating System: windows 7
by Altrea » 18. September 2012 15:03
Hi,
That is no error message, this is outputted plain text, actually an interrupted / a part of a switch case block:
- Code: Select all
[...]something missing[...]
(".$query);
logout();
include (MAIN_PATH."index.php");
break;
case "signup":
include (MAIN_PATH."index.php");
break;
}
}else{
switch($page){
case "Home":
include (MAIN_PATH."index.php");
break;
default:
include (MAIN_PATH."index.php");
break;
}
}
include (INCLUDE_PATH."footer.inc");
?>
5e1f75ff-c7f6-4951-a455-51146a01bb24
Y2:5e1f75ff-c7f6-4951-a455-51146a01bb24)
My first questions would be:
- How do you open the file in your browser?
- which address does your browsers address bar show at the time you get this output?
following questions:
- is there an by mistake typed ?> in front of (".$query); in your sourcecode?
- Which file type does the file have?
- Are your sure this file is meant to be accessed directly, or does it need another file to include it?
- Do you use short_open_tag <? instead of the full one <?php
best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!It's like porn for programmers
-
Altrea
- AF Moderator
-
- Posts: 11935
- Joined: 17. August 2009 13:05
- XAMPP version: several
- Operating System: Windows 11 Pro x64
by isankah » 19. September 2012 15:47
hi, your hints have worked. I have got it, it is using the short tags that caused the problem.
-
isankah
-
- Posts: 2
- Joined: 18. September 2012 04:32
- Operating System: windows 7
by Altrea » 19. September 2012 15:51
Good news.
So i can mark this thread as solved
I changed the headlines to something more selfspeaking. "using xampp" is far away from being selfspeaking.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!It's like porn for programmers
-
Altrea
- AF Moderator
-
- Posts: 11935
- Joined: 17. August 2009 13:05
- XAMPP version: several
- Operating System: Windows 11 Pro x64
Return to XAMPP for Windows
Who is online
Users browsing this forum: No registered users and 144 guests