Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » syntax error, unexpected 'version'
syntax error, unexpected 'version' [message #75890] Mon, 14 July 2008 18:51 Go to next message
No real name is currently offline No real nameFriend
Messages: 53
Registered: July 2009
Member
Hi,

I've inherited some php files and among them is a PHP-generated xml file
with the following format:

<?xml version="1.0"?>
<?php
echo "

--- the xml syntax here ---

";
?>

and PDT is flagging the word 'version' with the message - syntax error,
unexpected 'version' ... how can I dispose of this syntax error?

Thanks
Richard
Re: syntax error, unexpected 'version' [message #75908 is a reply to message #75890] Mon, 14 July 2008 19:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: codeslave.ca.ibm.com

Delete the first line. Or, if the contents in the echo "..." are just
XML w/o any PHP variables.. then just remove the first three lines (up
to echo ") and the last two ("; ?>), since there's no reason that this
file needs to be .php if it's in fact just .xml.

Nick

Richard Geddes wrote:
> Hi,
>
> I've inherited some php files and among them is a PHP-generated xml file
> with the following format:
>
> <?xml version="1.0"?>
> <?php
> echo "
>
> --- the xml syntax here ---
>
> ";
> ?>
>
> and PDT is flagging the word 'version' with the message - syntax error,
> unexpected 'version' ... how can I dispose of this syntax error?
>
> Thanks
> Richard

--
Nick Boldt :: Release Engineer, IBM Toronto Lab
Eclipse Modeling :: http://www.eclipse.org/modeling
http://wiki.eclipse.org/index.php/User:Nickb
Re: syntax error, unexpected 'version' [message #75922 is a reply to message #75908] Mon, 14 July 2008 20:37 Go to previous message
No real name is currently offline No real nameFriend
Messages: 53
Registered: July 2009
Member
Thanks... a little common sense goes a long way!

Nick Boldt wrote:
> Delete the first line. Or, if the contents in the echo "..." are just
> XML w/o any PHP variables.. then just remove the first three lines (up
> to echo ") and the last two ("; ?>), since there's no reason that this
> file needs to be .php if it's in fact just .xml.
>
> Nick
>
> Richard Geddes wrote:
>> Hi,
>>
>> I've inherited some php files and among them is a PHP-generated xml
>> file with the following format:
>>
>> <?xml version="1.0"?>
>> <?php
>> echo "
>>
>> --- the xml syntax here ---
>>
>> ";
>> ?>
>>
>> and PDT is flagging the word 'version' with the message - syntax
>> error, unexpected 'version' ... how can I dispose of this syntax error?
>>
>> Thanks
>> Richard
>
Previous Topic:Open Declaration - Text Completion
Next Topic:Xdebug - breakpoints don't work
Goto Forum:
  


Current Time: Mon Nov 04 19:18:57 GMT 2024

Powered by FUDForum. Page generated in 0.03029 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top