ID: 24474
Updated by: [email]rrichardsphp.net[/email]
Reported By: grest at interia dot pl
-Status: Open
+Status: Bogus
Bug Type: DOM XML related
Operating System: WinXp
PHP Version: 4.3.2
New Comment:

Using Apache under windows you must use fullpath names with domxml. All
filepaths are handled by libxml (not PHP) which when loaded uses the
apache bin directory as the root directory. This includes the path to
the DTD within your xml doent, which is the reason that
get_element_by_id is not working, as the DTD is not being loaded.


Previous Comments:
------------------------------------------------------------------------

[2003-07-09 07:44:26] grest at interia dot pl

I have installed PHP as Apache 2.0.46 module (earlier i used OmniHttp).
That caused two problems:
1. The functions like domxml_open_file,domxml_xslt_stylesheet_file need
now full path to work, for example
$filename = "d:\Www\grugar\filmy.xsl";
$xmldoc =
domxml_open_file("d:\Www\grugar\filmy.xml",DOMXML_ LOAD_VALIDATING);

earlier it works fine with $filename = "filmy.xsl"

Another function like "fopen" work good without full path

2. (MOST IMPORTANT)
get_element_by_id stoped working, and return always null
(earlier with OmniHttp that works fine)

Is this a bug or not? I don`t know, which category of bug should i
choose.
Sorry for my English :)

------------------------------------------------------------------------

[2003-07-04 10:10:01] [email]magnusphp.net[/email]

ops.. we are editing bugs at the same time..

------------------------------------------------------------------------

[2003-07-04 10:08:20] [email]magnusphp.net[/email]

still not a bug.. So it should be marked bogus.

------------------------------------------------------------------------

[2003-07-04 10:07:38] [email]derickphp.net[/email]

Making it a doentation problem then.

------------------------------------------------------------------------

[2003-07-04 10:06:02] grest at interia dot pl

Thanks, now it works correct :) I didn`t find in the manual the
information about DOMXML_LOAD_VALIDATING.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/24474[/url]

--
Edit this bug report at [url]http://bugs.php.net/?id=24474&edit=1[/url]