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]
|