This is a discussion on "PHP4/5 XML issues..." within the PHP Forum section. This forum, and the thread "PHP4/5 XML issues... are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
PHP4/5 XML issues...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
PHP4/5 XML issues...
Hi,
I wrote an AJAX/PHP script(s) for sending an email from a form without leaving the page and giving a response to the user. It works fine on my PHP5 testing server. But on my remote server the mails stil sends, but then it dies in the ass as its running PHP4. ![]() Can anyone help me convert this to the PHP4 functions if possible? It works fine up to here, this is the end of the script... // create a new XML document $dom = new DOMDocument(); // create the root <response> element and add it to the document $response = $dom->createElement('response'); $dom->appendChild($response); // add the message as a text node child of <response> $responseText = $dom->createTextNode($result); $response->appendChild($responseText); // build the XML structure in a string variable $xmlString = $dom->saveXML(); // output the XML string echo $xmlString; Cheers, Jim. |
|
|
|
|||
|
Re: PHP4/5 XML issues...
as far as I am aware DOMDocument is only available in php5 hence your problem.
I am not that familiar with xml myself so cannot really help much. |
![]() |
| Tags |
| php45, xml, issues |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IE and FF Issues... | Aaron1988 | Web Page Design | 0 | May 10th, 2008 15:52 |
| Serious issues in IE7 | Daimz | Web Page Design | 2 | Aug 21st, 2007 12:38 |
| GD Issues. | PicoDeath | PHP Forum | 6 | Apr 5th, 2007 16:53 |
| CSS Issues. Can you help me out? | escaflowne11 | Web Page Design | 7 | Sep 13th, 2006 13:18 |
| PHP3 moving to PHP4.. error in file. | cybershopuk | PHP Forum | 12 | May 25th, 2006 15:51 |