473,651 Members | 3,032 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_d omxml.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_fil e('xml/menu.xml');
....I get the following error:
Warning: domxml_open_fil e(): I/O in C:\Program
Files\Apache\Ap ache2\htdocs\cs p\home\index.ph p on line 28

Warning: domxml_open_fil e(): warning : in C:\Program
Files\Apache\Ap ache2\htdocs\cs p\home\index.ph p on line 28

Warning: domxml_open_fil e(): failed to load external entity
"../xml/menu.xml" in C:\Program
Files\Apache\Ap ache2\htdocs\cs p\home\index.ph p 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 4018
Well, anyone?

Jul 17 '05 #2
(bi******@yahoo .co.uk) decided we needed to hear...
<snip>
Warning: domxml_open_fil e(): I/O in C:\Program
Files\Apache\Ap ache2\htdocs\cs p\home\index.ph p on line 28

Warning: domxml_open_fil e(): warning : in C:\Program
Files\Apache\Ap ache2\htdocs\cs p\home\index.ph p on line 28

Warning: domxml_open_fil e(): failed to load external entity
"../xml/menu.xml" in C:\Program
Files\Apache\Ap ache2\htdocs\cs p\home\index.ph p 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**@REMOVEbun dook.com>
(Remove REMOVE for email address)
Jul 17 '05 #3
Instead, I used the following (taken from the manual):

$showfile = file_get_conten ts($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
3232
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/> The result is :
0
2029
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 something like that) in php.ini. Unfortuntely I get the following error at a part of my PHP page where I try to load a xml file:
0
1450
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 for works? Thank you in advance, Andrea.
2
1699
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 plain isn't in that folder, or anywhere in the .zip file for that matter. Is there an official binary provided, or do I have to get the source and Visual C++ 6 and compile it myself?
1
1949
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 PHP4 That could mean that pear is installed under the php4/ area, but not php5 ? go-pear prompted me to install a number of packages, including DB, which my webhost already has made available. If I do install DB using
4
2038
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 --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
1
2249
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 remove it. Make uninstall doesn't work, and I can't just go around removing the files as the various db's (locate, whereis, etc) won't be updates - and should I install a packaged version, it would be a disaster. Any suggestions?
3
1934
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 that it is human readable. --Yan
2
3046
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 domxml is not working,If anybody have any idea about domxml means pleach share your knowledge here. Regards, M.Mageswaran.
0
8701
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8466
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8584
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7299
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2701
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 we have to send another system
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.