Reply to Finding out about html_doc()

Your name:

Reply:


Posted by Peter Cruickshank on 03/01/06 20:47

Hi

I'm trying to get some PHP4 code working on PHP5 - and am having an
issue with a part of the code that uses html_doc() to turn html text
scraped from a website into something that can be processed by DomXml
functions like xpath_eval()

I've found a nice looking wrapper at
http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/
which seems like it should do PHP4<->PHP5 work, except that it doesnt
support html_doc().

I've tried replacing html_doc() with:
domxml_open_mem($doc,DOMXML_LOAD_RECOVERING)
but I can't get that to work even with the PHP4 - is that down to
validation errors in the HTML?

My problem is that I can't find any documentation to explain what
html_doc() is meant to do and I'm new to the details of domxml coding
(though I know what an XPath is...)

In summary, two questions:
- can I use domxml_open_mem() as a replacement for html_doc() in
PHP4/domxml. If so, how?
- where can I find documentation on html_doc()?

I've googled, searched php.net and looked through group archives and can't
find anything - any ideas or information welcomed!

Thanks

Peter
--
Peter Cruickshank
news at cruickshank dot biz

PS I originally posted this to alt.comp.lang.php but received no response.

[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

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