<?php $_GET = [ "city" => "South Boston", "title" => "The good stuff", "price" => "$15" ]; $_SERVER["REQUEST_URI"] = "/I/dont/know?" . http_build_query($_GET); $dir_auth1 = "aidan"; $xml = simplexml_load_string('<root/>'); $entry = $xml->addChild('link'); $entry->addChild('title', chop($_GET['city'] .' - '. $_GET['title']) .' for '. $_GET['price'] .' from @'. $dir_auth1); $entry->addChild('url', 'http://boston.lit.life' . $_SERVER['REQUEST_URI']); echo $xml->asXML(); ?>
You have javascript disabled. You will not be able to edit any code.