You are here: Re: Just installed DOMXML and getting error when loading an XML file / string « PHP Programming Language « IT news, forums, messages
Re: Just installed DOMXML and getting error when loading an XML file / string

Posted by Oli Filth on 09/05/05 03:01

bissatch@yahoo.co.uk said the following on 04/09/2005 22:27:
> Ok, Ive found something out...
>
> It appears that I need to use the full path of the file. Ive had a
> similar problem before with relative paths but got round it using
> file_get_cotents() and domxml_open_mem() but this time it wont let me.
>
> Why is it that I have used DOMXML plenty of times before and havent had
> many instances with relative paths. Is this a configuration problem? Or
> maybe its a Windows thing?
>

One thing I just spotted in the manual page for domxml_open_mem():

"There is some interesting feature with "magic_quotes_runtime" ini
directive and "domxml_open_mem" function.
If we have "magic_quotes_runtime=on" in out php.ini file, this code
generates many warning
$xml_str = file_get_contents($xml_file));
$Document = domxml_open_mem($xml_str));
if "magic_quotes_runtime=off" all is good."


Does this help?

--
Oli

 

Navigation:

[Reply to this 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

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