php_novice2007 Posted June 13, 2007 Share Posted June 13, 2007 Hi, I'm trying to use PHP to create an XML file from a MySQL database.. I'm following a tutorial from http://imagine-it.org/google/tutorial_phpsqlajax.htm and it says to call domxml_new_doc() to check if my server's PHP has dom_xml functionality on. When I tried it, it says the function is undefined.. the tutorial doesn't tell me how to fix it. Can anyone help? thanks~! Quote Link to comment https://forums.phpfreaks.com/topic/55356-php-and-xml/ Share on other sites More sharing options...
btherl Posted June 13, 2007 Share Posted June 13, 2007 Which version of php are you using? What does "echo phpversion();" show? Quote Link to comment https://forums.phpfreaks.com/topic/55356-php-and-xml/#findComment-273593 Share on other sites More sharing options...
php_novice2007 Posted June 13, 2007 Author Share Posted June 13, 2007 its 5.2.1 Quote Link to comment https://forums.phpfreaks.com/topic/55356-php-and-xml/#findComment-273594 Share on other sites More sharing options...
btherl Posted June 13, 2007 Share Posted June 13, 2007 That tutorial uses the php4 interface: http://sg2.php.net/manual/en/ref.domxml.php Since you're using php5, you've got the new interface: http://sg2.php.net/manual/en/ref.dom.php Quote Link to comment https://forums.phpfreaks.com/topic/55356-php-and-xml/#findComment-273600 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.