# Kirupa guestbook tutorial PHP problem

**URL:** <https://forum.kirupa.com/t/kirupa-guestbook-tutorial-php-problem/233323>\
**Category:** Uncategorized\
**Created:** [July 23, 2007, 1:58am UTC](https://forum.kirupa.com/t/kirupa-guestbook-tutorial-php-problem/233323 "2007-07-23T01:58:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![j05hua](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@j05hua](https://forum.kirupa.com/u/j05hua)\
**Post date:** [July 23, 2007, 1:58am UTC](https://forum.kirupa.com/t/kirupa-guestbook-tutorial-php-problem/233323/1 "2007-07-23T01:58:32Z")

</div>

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
<?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](http://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.
