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
XAMPP Version: 1.7.5
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
free software according to purpose of usage
XAMPP 1.8 for local development/testing only
Zend Server 6 (free) for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 4638
Joined: 17. August 2009 13:05
XAMPP Version: 1.8.1
Operating System: W7Ux64

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
XAMPP Version: 1.7.5
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
free software according to purpose of usage
XAMPP 1.8 for local development/testing only
Zend Server 6 (free) for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 4638
Joined: 17. August 2009 13:05
XAMPP Version: 1.8.1
Operating System: W7Ux64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 8 guests