473,503 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I install domxml with PHP4?

Hi,

I have recently installed PHP4 with Apache2. Currently I am trying to
install the DOMXML extension. According to what I have read, if I
uncomment the extension=php_domxml.dll line in php.ini (ensuring that
extension_dir is correct and that the file is definitely in that
folder) and then restart apache this should install domxml in PHP.

Now! when I do phpinfo() it tells me that domxml is enabled (good).
Unfortunetely, when I try the following:
domxml_open_file('xml/menu.xml');
....I get the following error:
Warning: domxml_open_file(): I/O in C:\Program
Files\Apache\Apache2\htdocs\csp\home\index.php on line 28

Warning: domxml_open_file(): warning : in C:\Program
Files\Apache\Apache2\htdocs\csp\home\index.php on line 28

Warning: domxml_open_file(): failed to load external entity
"../xml/menu.xml" in C:\Program
Files\Apache\Apache2\htdocs\csp\home\index.php on line 28
Is there any reason why PHP4 would struggle with this line? Is there
anything else that I need to do to install domxml? Cheers

Burnsy

Jul 17 '05 #1
3 4004
Well, anyone?

Jul 17 '05 #2
(bi******@yahoo.co.uk) decided we needed to hear...
<snip>
Warning: domxml_open_file(): I/O in C:\Program
Files\Apache\Apache2\htdocs\csp\home\index.php on line 28

Warning: domxml_open_file(): warning : in C:\Program
Files\Apache\Apache2\htdocs\csp\home\index.php on line 28

Warning: domxml_open_file(): failed to load external entity
"../xml/menu.xml" in C:\Program
Files\Apache\Apache2\htdocs\csp\home\index.php on line 28
Is there any reason why PHP4 would struggle with this line? Is there
anything else that I need to do to install domxml? Cheers

Burnsy


Try using a full path to the xml file. Read the manual page for
more info...
http://www.php.net/manual/en/functio...-open-file.php
--
Dave <da**@REMOVEbundook.com>
(Remove REMOVE for email address)
Jul 17 '05 #3
Instead, I used the following (taken from the manual):

$showfile = file_get_contents($path . "/" . $fileName);

if(!$domDoc = domxml_open_mem($showfile)) {
echo "Couldn't load xml...";
exit;
}

It still allows me to use relative paths. Cheers

Burnsy

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3222
by: srommens | last post by:
Hello, When I try to do : URI = <xsl:value-of select="//@URI"/><br/> <xsl:if test = "//@URI != '5-42922'">not equal</xsl:if><br/> <xsl:if test = "//@URI = '5-42922'">equal</xsl:if><br/> ...
0
2010
by: bissatch | last post by:
Hi, I have installed Apache2. I have installed PHP4.3.0. All is working fine. I have now went and tried to install DOMXML into PHP by simply uncommenting the extension = php_domxml.dll (or...
0
1438
by: _andrea.l | last post by:
I'd like to use php5 but at my work we use PHP4. How can use both togheter? I work whith Linux Fedora 4 then I have PHP5 installed so how can install PHP4 and use PHP5 for my experiment and PHP4...
2
1687
by: russell.bevers | last post by:
The install.txt that comes with the manual binary install of PHP4 for Windows states that the ActiveScript engine is included in sapi/php4activescript.dll. This is not true in 4.3.11. It just...
1
1938
by: webguynow | last post by:
I've installed PEAR in my local area, on my shared host, under htdocs but I'm anticipating a number of issues. I'm forcing use of PHP5 with an .htaccess file, but by default the host runs ...
4
2030
by: tristan | last post by:
Im stumped. Ive been trying to get the php4 domxml extentions working but have had no luck. here is my Configure: ../configure --build=i386-redhat-linux --host=i386-redhat-linux...
1
2241
by: augustf | last post by:
An old pet peeve of mine with *nix has reared its ugly head - the total lack of uninstall on compiled apps. After compiling php4 on debian, I've had some problems and would like to completely...
3
1917
by: CptDondo | last post by:
Does anyone know how to specify the format for the domxml->dump_file method? I am at a loss; my document is being dumped as one great big long line, and I want to insert line breaks and spaces so...
2
3036
mageswar005
by: mageswar005 | last post by:
Hi guys, Any body have any idea about php5 domxml with obuntu linux server. I have installed php5,Apache2,Mysql on linux ubuntu server,but Domxml is not working properly.I dont know why...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.