By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

Getting XML extensions to work

P: n/a
I am running PHP v4.3.1 on Apache 1.3.27 on Mandrake 9.1 (kernal 2.4.21-
0.13mdk) I tried running the phpSysInfo script ( http://phpsysinfo.sf.net/
) and gave me the error "Call to undefined function: xml_parser_create() "
And that is supposed to be a function used by the XML extension. I checked
my php info ( http://svr2.vrillusions.com/info.php ) and there is no XML
secion. I checked the XML section of the manual (
http://www.php.net/manual/en/ref.xml.php ) and said I needed to install
expat. There was a precompiled RPM for mandrake so I got that installed,
restarted apache and it still doesn't work. It seems like I would have to
tell php somehow that I have XML now, but can't figure out how to do that.
Any ideas? Thanks for any help.

--
VR
Jul 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
vrillusions wrote:
I am running PHP v4.3.1 on Apache 1.3.27 on Mandrake 9.1 (kernal 2.4.21-
0.13mdk) I tried running the phpSysInfo script ( http://phpsysinfo.sf.net/
) and gave me the error "Call to undefined function: xml_parser_create() "
And that is supposed to be a function used by the XML extension. I checked
my php info ( http://svr2.vrillusions.com/info.php ) and there is no XML ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Don't do this for longer than is absolutely necessary. There's a fair
bit of information exposed here which could help someone compromise the
server (paths, installed software, etc). Save the output and remove the
file, print it out, .htaccess it or something.

....can't answer your question though :)
secion. I checked the XML section of the manual (
http://www.php.net/manual/en/ref.xml.php ) and said I needed to install
expat. There was a precompiled RPM for mandrake so I got that installed,
restarted apache and it still doesn't work. It seems like I would have to
tell php somehow that I have XML now, but can't figure out how to do that.
Any ideas? Thanks for any help.

--
MeerKat

Jul 16 '05 #2

P: n/a
On 25 Aug 2003, MeerKat <li****************@blueyonder.co.uk> wrote:
vrillusions wrote:
I am running PHP v4.3.1 on Apache 1.3.27 on Mandrake 9.1 (kernal
2.4.21- 0.13mdk) I tried running the phpSysInfo script (
http://phpsysinfo.sf.net/ ) and gave me the error "Call to undefined
function: xml_parser_create() " And that is supposed to be a
function used by the XML extension. I checked my php info (
http://svr2.vrillusions.com/info.php ) and there is no XML

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Don't do this for longer than is absolutely necessary. There's a fair
bit of information exposed here which could help someone compromise
the server (paths, installed software, etc). Save the output and
remove the file, print it out, .htaccess it or something.

...can't answer your question though :)
secion. I checked the XML section of the manual (
http://www.php.net/manual/en/ref.xml.php ) and said I needed to
install expat. There was a precompiled RPM for mandrake so I got
that installed, restarted apache and it still doesn't work. It seems
like I would have to tell php somehow that I have XML now, but can't
figure out how to do that. Any ideas? Thanks for any help.


yeah I know, I just made that before posting so if people had any
questions that could be answered from that page, they could do it. Once
I figure this out I'm removing that again (not like it's that hard to
make the page anyway :) )

--
VR
Jul 16 '05 #3

P: n/a
On 25 Aug 2003, Zurab Davitiani <ag*@mindless.com> wrote:
vrillusions wrote on Monday 25 August 2003 11:08:
I am running PHP v4.3.1 on Apache 1.3.27 on Mandrake 9.1 (kernal
2.4.21- 0.13mdk) I tried running the phpSysInfo script (
http://phpsysinfo.sf.net/ ) and gave me the error "Call to undefined
function: xml_parser_create() "
And that is supposed to be a function used by the XML extension. I
checked my php info ( http://svr2.vrillusions.com/info.php ) and
there is no XML
secion. I checked the XML section of the manual (
http://www.php.net/manual/en/ref.xml.php ) and said I needed to
install expat. There was a precompiled RPM for mandrake so I got
that installed, restarted apache and it still doesn't work. It seems
like I would have to tell php somehow that I have XML now, but can't
figure out how to do that. Any ideas? Thanks for any help.


It may be that Mandrake RPM does not contain/install the xml extension
by default. Have you tried:
urpmi php-xml
I am not a Mandrake user/expert so I cannot confirm; but read what it
says in the 4th row (from top) of your phpinfo output.


@#$Q$@%@#$% I didn't get it to work before, but I just did an su, not su
-l so I didn't get the extra paths that root gets, that was why I
couldn't find it before. Did that and it works fine. Thanks

--
VR
Jul 16 '05 #4

P: n/a
Regarding XML in general, bear in mind that PHP 5 will come with a totally
new XML handling based on libxml2.

I haven't looked too much into the PHP5 code so far, so I can't tell how big
the difference will be, but that may be worth taking into account.

Patrice
--
Posté avec Knode, le lecteur de niouzes de KDE
Jul 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.