Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Re: eclipse for php developers
Re: eclipse for php developers [message #516393] Tue, 23 February 2010 15:28 Go to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 2/20/10 6:54 AM, Rick wrote:
> I'm new :lol: ... so, I've just decided to augment notepad++ with
> eclipse as my php ide to help me debug. After creating a new project
> with all my php code I've discovered that line one is in error: <?xml
> version="1.0" encoding="UTF-8"?>
>
> Specifically the 'version' part. I've searched here for an answer but
> what I've found is not making sense to me. I'm using PHP 5.3. and my DTD
> and html opening tag is:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
> id="top">
>
>
> I'm just looking for the short answer, i.e., why is eclipse fagging this
> line as an error and how to I resolve it? Thanks all!

What does the warning/error message say?
Also, did you know that there is a forum group dedicated to PDT (PHP
Development Tools)? I've copied this message to that group.

Eric
Re: eclipse for php developers [message #516608 is a reply to message #516393] Wed, 24 February 2010 14:52 Go to previous message
Rob B is currently offline Rob BFriend
Messages: 6
Registered: February 2010
Junior Member
Most likely it is the <? in the line <?xml... since this also starts a block of php code.

try this:
echo '<?xml version="1.0" encoding="utf-8"?>';

HTH

-Rob B

[Updated on: Wed, 24 February 2010 14:55]

Report message to a moderator

Previous Topic:Installing PDT on Debian Linux
Next Topic:Some Basic PDT Questions
Goto Forum:
  


Current Time: Thu Apr 25 12:52:25 GMT 2024

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

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

Back to the top