i have a working copy of the kirupa guestbook on one web server (free) but the same guestbook wont work on another web server (paid web host with domain). i have the permissions set to 777 on the xml file but cant seem to ‘send’ new messages to the guestbook. their server is using PHP 5.2.2 so i am guessing that the original processXML.php file from the tutorial is outdated? can anyone who knows PHP check the code or can anyone suggest a way of testing the PHP without having to learn the language?
<?php
$file = fopen("guestbook.xml", "w+") or die("Can't open XML file");
$xmlString = $HTTP_RAW_POST_DATA;
if(!fwrite($file, $xmlString)){
print "Error writing to XML-file";
}
print $xmlString."
";
fclose($file);
?>
faulty gustbook @ www.conspiracyink.com
thank you very much for your time
Joshua
p.s. i uploaded the php file with a txt extension because .php wasn’t a valid upload.