#30797 [Opn->Bgs]: domxml_open_file() file access errors
| From: | derick@php.net | Date: | Mon, 15 Nov 2004 17:35:52 +0000 |
| Subject: | #30797 [Opn->Bgs]: domxml_open_file() file access errors | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69096@lists.php.net to get a copy of this message | ||
ID: 30797
Updated by: derick@php.net
Reported By: joahking at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: DOM XML related
Operating System: winXP
PHP Version: 4.3.9
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
This is just a permissions error.
Previous Comments:
------------------------------------------------------------------------
[2004-11-15 18:22:53] joahking at yahoo dot com
Description:
------------
hi there,
I just move my PHP site from my linux box to a winXP-platform for
testing. On linux everything worked.
I have now PHP 4.3.9 (also tried with other versions) as a server
module on apache 1.3.29 (Win32).
I need to use the extension domxml but it gives some access errors.
This is my phpinfo result (php.ini have minor arrangements, like
displaying error colors, my aliases, the extension activation and
nothing else):
...
Apache Version Apache/1.3.29 (Win32) PHP/4.3.9
...
domxml
DOM/XML enabled
DOM/XML API Version 20020815
libxml Version 20611
HTML Support enabled
XPath Support enabled
XPointer Support enabled
DOM/XSLT enabled
libxslt Version 1.1.7
libxslt compiled against libxml Version 2.6.11
....
The error is generated with any "any.xml", and:
$mydom = domxml_open_file("any.xml");
which turns on something about file access (see below) which is only
been the case with the domxml, 'cos other file-accessers ( fopen )
access the any.xml.
With apache 2 gave the same error. Everything else (what I need and
have seen, of course) works with PHP and apache, and browsing.
thanx in advance,
LSd
jk
Reproduce code:
---------------
any.xml (the molecules example from the PHP manual):
<?xml version="1.0"?>
<moldb>
<molecule>
<name>Alanine</name>
<symbol>ala</symbol>
<code>A</code>
<type>hydrophobic</type>
</molecule>
<molecule>
<name>Lysine</name>
<symbol>lys</symbol>
<code>K</code>
<type>charged</type>
</molecule>
</moldb>
and test.php (reside in the same path):
$mydom = domxml_open_file("any.xml");
Actual result:
--------------
Warning: domxml_open_file(): I/O in c:\program files\apache
group\apache\htdocs\test\dom-test.php on line x
Warning: domxml_open_file(): warning : in c:\program files\apache
group\apache\htdocs\test\dom-test.php on line
x
Warning: domxml_open_file(): failed to load external entity "any.xml"
in c:\program files\apache group\apache\htdocs\test\dom-test.php on
line x
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30797&edit=1