Reply to RE: [PHP] DOMDocument and html doctype

Your name:

Reply:


Posted by Brian V Bonini on 05/15/05 01:15

On Sat, 2005-05-14 at 13:03, Jared Williams wrote:
> >
> > On Sat, 2005-05-14 at 07:57, Jared Williams wrote:
> > > > Hi,
> > > > I've used loadHTML() to read a HTML file to DOM. This file starts
> > > > with a string like <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> > > > Transitional//EN">
> > > >
> > > > Do someone know how I can access this string? By reading
> > the doctype
> > > > back from DOMDocument I only found the name (HTML) but nothing
> > > > more...
> > > >
> > >
> > > Use $document->doctype, its DOMDocumentType object..
> > >
> >
> > That's part of DOM XML isn't it? I think he's referring to
> > the newer DOM extension since 'loadHTML() is cited...???
> >
>
> I was referring to the new PHP5 DOM extension.

OOppps, there it is, tabel 3 on the first page of the DOM section in the
manual... I swear it wasn't there earlier.. ;-)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация