Guest User

Untitled

a guest
Nov 12th, 2011
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. if ($_POST['post']) {
  4. $elem = getElementByName('rss')
  5. $xml = simplexml_load_file('feed.xml');
  6. $xml->addChild('title', $_POST['post']);
  7. $elem->appendChild(title)
  8.  
  9. file_put_contents('feed.xml', $xml->asXML());
  10. }
  11. ?>
  12.  
RAW Paste Data