Please Help! How can I change this Parse error message?

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

Please Help! How can I change this Parse error message?

Postby Goodluck Nairaman » 20. January 2013 17:25

Hi
Please help. What does this mean?
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\xampp\htdocs\training\test.php on line 9
I get this message when I try to open a file in xampp.
Goodluck Nairaman
 
Posts: 2
Joined: 20. January 2013 14:01
Operating System: Windows 7 Home basic

Re: Please Help! How can I change this Parse error message?

Postby Altrea » 20. January 2013 17:37

Hi Goodluck Nairaman,

looks like a missing ; (semicolon) at the end of an PHP statement.
But we can't say anything more to that, because we don't know the code of your test.php file.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Please Help! How can I change this Parse error message?

Postby Goodluck Nairaman » 20. January 2013 17:49

Hi Altrea
Thanks for your reply. here is the code
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>This is an HTML line
<p>
<?php
echo “This is a PHP line”;
phpinfo();
?>
</body></html>

What am I doing wrong or not doing right?
Goodluck Nairaman
 
Posts: 2
Joined: 20. January 2013 14:01
Operating System: Windows 7 Home basic

Re: Please Help! How can I change this Parse error message?

Postby Altrea » 20. January 2013 18:28

Goodluck Nairaman wrote:What am I doing wrong or not doing right?

Just one thing: You don't use the correct quotation marks in your echo statement on line 9.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
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 133 guests