PHP & XML Guestbook Tutorial

Hello Flash Freekz!

I have recently attempted to get into PHP and XML. I started buy going throught the majority of the tutorials by the mightly Senecular.

I feel like i have an understanding, but that might be far from the truth.

I did the XML and PHP Guestbook tutorial and It’s not working.

All I did was use all the existing files. Loaded them to my server. Read, Read and did some more reading. And it does not work.

I am missing something in the “BIG PICTURE”
If anyone cares to check it out… I am sure you can diagnose the issue quickly.

the FLA is already on Kirupa site so there is no need to attach it unless someone asks…!

Thanks in advance…
Whoever is willing to help I will license one of our upcoming releases for use on one of your projects…

Drew - Real Hype Records

I think you forgot to CHMOD your XML file to 666.

please ellaborate… That’s greek to me. Thanks.

Open up the XML doc in dreamweaver and do what?

It means you have to set permissions on the XML file.

If you upload it to your webserver, your FTP client should have an option to set permissions (or in Greek: CHMOD :P)

666 means: readable and writable by everyone

Hope that helps.

After your contributions and some hardcore forum sweepin i have gotten myself 99% there. Just not understanding the actual procedure of applying the permission.


I got it…geeeeez.

Right clicking on the xml doc was all i needed to to!
I was doing things the hard way.

Thanks for a bangin tutorial… One extra thought before I go read more of your tutorial…Everytime I try to put in a new message, the previous text that I input shows up in the text fields when i hit add a message

within the createButton.onRelease() handler, add these 2 lines after setting the createMessage mc to visible:

this._parent.createMessage.nameField.text = "";
this._parent.createMessage.messageField.text = "";

That removes all the text that you put into it before.

@ Flashmattaz,
just wondering, I used your guestbook and chmod to 777, like you stated in the tutorial [size=1] (Great tutorial btw;))[/size]:

This means that you must set (CHMOD) permissions to 777, which you can do with your FTP program for example.

and that worked as it should.
In the above posts I read chmod 666, can you explain?



They both work. However 777 means “executable by everyone”. and since you don’t execute the XML file, but only write and read it, setting permissions to 666 is in fact enough.
Only I realized that after writing the tutorial :trout:

Thanks, then that’s cleared up=)