XML Guestbook with PHP

Hi
I have uploded the files, but i am not sure how to make it work.
http://www.koddinn.com/xml_guestbook/

I have read thru this http://www.kirupa.com/web/xml_guestbook2.htm
without of luck, i am new in this flash, can someone help here, am i doing something wrong ??

You’ve uploaded the FLA but not the HTML and SWF files, so first publish your movie and upload those.
Then make sure that the permissions on the XML file are sety properly so it can be written to.

Hope that helps.

Hi

I have publish this now, but when i write in the book, it wont show.
http://www.koddinn.com/xml_guestbook/guestbook.html

The permission on the XML file is CHMOD 777
Has i forgot something?

If you look at the third page of the tut you’ll see that the XML file you start with should look like this:


<?xml version="1.0"?>
<guestbook>
</guestbook>

yours seems to be totally empty.

Hi
now it work fine, just one thing, does everyone who write the book have to refresh to see the message, does it not autorefresh or…

thx

if you click on “Add a message” you should see your message directly without having to refresh the page.

it dont do that, i have to refresh the page to see the message,

test it
http://www.koddinn.com/xml_guestbook/guestbook.html

I see.
you didn’t by any chance make any changes to the AS or PHP?

I uploaded the orginal php file

<?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);
?>

seems to be working now

thx for this great script

no problem :slight_smile: