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:

hi,
could someone check THIS and help me figure out why when you add a message it does not send. I have not alter the files. thank you.

I think you forgot to change permissions on the XML file (CHMOD). Set it to 666 (readable and writable by everyone). That should do it.

Thank you Flashmatazz,
I believe that site does not support php because I tried a different approach and it seems to be working now. Please check THIS

well it was working off my server(my computer), and I tested it a few times. It doesn’t respond now and I don’t know why.
What could be wrong now. By the way, where am I suppose to look for CHMOD?
appreciate it.

It looks like it is working. Can someone please varify the link in the post #13. Thanks
BTW/ Flashmatazz you have built this car and I don’t seem to be able to drive it.

Hi
I am editing the text to [font=Arial]Icelandic, [/font]
http://www.koddinn.com/xml_guestbook/guestbook.html

When i let the mouse go over the Skrifa í bók button, other text comes **Add a message, **how can i let that text be same Skrifa í bók on mouseover

and is there a way to add in **Website **in the fill form

sorry my English

No need, found it

is there a way to add in Mail and Webpage, how is it done ??