You are not logged in.
Hi !
I'm developing some PHP scripts locally, i installed Lamp as instructed in the wiki, but all the xml related functions don't work as if the xml support wasn't enabled
then i installed Xampp, and it works ..
is there anyway to enable simplexml in arch's lamp ? i checked with phpinfo(); it seems enabled so it's weird
thanks
Last edited by chuckychuck (2009-01-17 12:01:01)
Offline
I've not had the problem of simpleXML not working with the Arch install as you describe. I just installed the "regular" Apache, PHP, MySQL stuff. Do you get an error message you can post here?
Matt
"It is very difficult to educate the educated."
Offline
no i don't get any error message ..
php just act is if he didn't know the functions/objetcs i'm using, for example i used a code similar to this one :
$parsed_xml = simplexml_load_string($somexmlstring);
print_r($parsed_xml);
under arch's lamp, no output ...
then i stop /etc/rc.d/httpd & mysqld, and i start xampp's httpd instead, i didn't do any modifications to the php file while switching between the 2 servers
then under xampp, my simplexml object is properly displaying ..
all my scripts are under my ~/public_html directory, and other scripts work flawlessly ( did some Drupal testing for example ), so i'm sure it's not userdir.conf related
i looked at the phpinfo, it's written :
SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.22.2.45 $
Schema support enabled
weird no ?
I thought that maybe arch's lamp require some xml system library, whereas xampp has an embedded one maybe ..
About the httpd/php config, as phpinfo(); tells me simplexml is enabled i really don't know where it comes from ..
thx
Offline
Odd indeed. I have no idea then. If it helps, I've attached all the packages I have installed that contain "xml". Maybe one of thise will trigger something to test for you?
local/docbook-xml 4.5-1
A widely used XML scheme for writing documentation and help
local/docbook-xsl 1.74.0-1
XML stylesheets for Docbook-xml transformations.
local/expat 2.0.1-2
An XML Parser library written in C
local/lib32-expat 2.0.1-1.1 (lib32)
An XML Parser library written in C
local/lib32-libxml2 2.7.2-1 (lib32)
XML parsing library, version 2
local/lib32-libxslt 1.1.24-1 (lib32)
XML stylesheet transformation library
local/libxml-perl 0.08-1
Perl library for working with XML
local/libxml2 2.7.2-1
XML parsing library, version 2
local/libxslt 1.1.24-1
XML stylesheet transformation library
local/perl-xml-dom 1.44-5
Implements Level 1 of W3's DOM
local/perl-xml-namespacesupport 1.09-3
Generic namespace helpers (ported from SAX2)
local/perl-xml-regexp 0.03-3
Regular expressions for XML tokens
local/perl-xml-sax 0.96-1
Simple API for XML
local/perl-xml-sax-expat 0.39-2
SAX2 Driver for Expat (XML::Parser)
local/perl-xml-simple 2.18-2
Simple XML parser for perl
local/perl-xml-twig 3.32-2
A module for easy processing of XML
local/perlxml 2.36-1
XML::Parser - an XML parser module for perl
local/pyxml 0.8.4-5
Python XML parsing library.
local/raptor 1.4.18-1
A C library that parses RDF/XML/N-Triples into RDF triples
local/xcb-proto 1.2-2
XML-XCB protocol descriptions
local/xmlrpc-c 1.06.32-1
This library provides a modular implementation of XML-RPC for C and C++
Good luck!
Matt
"It is very difficult to educate the educated."
Offline