473,549 Members | 2,246 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 4010
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
3228
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
2022
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
1447
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
1694
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...
1
1941
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 ...
4
2036
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...
1
2245
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...
3
1929
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
3044
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
7472
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7986
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...
1
7504
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...
0
7832
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...
0
5114
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3518
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1965
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
1083
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
786
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...

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.