PHP4/5 XML issues...

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 16th, 2006, 14:15
Up'n'Coming Member
Join Date: Feb 2006
Location: London
Age: 25
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Aug 22nd, 2006, 06:42
New Member
Join Date: Jul 2005
Location: UK (Scotland)
Age: 29
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply

Tags
php45, xml, issues

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 11:57.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43