# PHP & XML Guestbook Tutorial

**URL:** <https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999>\
**Category:** flash\
**Created:** [July 9, 2004, 12:56pm UTC](https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999 "2004-07-09T12:56:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![drew\_szczygiel](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@drew\_szczygiel](https://forum.kirupa.com/u/drew_szczygiel)\
**Post date:** [July 9, 2004, 12:56pm UTC](https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999/1 "2004-07-09T12:56:14Z")

</div>

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”

[www.realhype.com/guestbook.html](http://www.realhype.com/guestbook.html)  
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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 2:36pm UTC](https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999/2 "2004-07-09T14:36:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 2:45pm UTC](https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999/3 "2004-07-09T14:45:48Z")

</div>

> [@Flashmatazz](#):
>
> 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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 4:24pm UTC](https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999/4 "2004-07-09T16:24:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 6:25pm UTC](https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999/5 "2004-07-09T18:25:58Z")

</div>

> [@Flashmatazz](#):
>
> 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.

1.FTP Command: CHMOD 666 GUESTBOOK.HTML  
2.?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 6:56pm UTC](https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999/6 "2004-07-09T18:56:10Z")

</div>

> [@drew.szczygiel](#):
>
> After your contributions and some hardcore forum sweepin i have gotten myself 99% there. Just not understanding the actual procedure of applying the permission.
> 
> 1.FTP Command: CHMOD 666 GUESTBOOK.HTML  
> 2.?

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 7:42pm UTC](https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999/7 "2004-07-09T19:42:01Z")

</div>

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

```auto

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

```

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 10, 2004, 7:38am UTC](https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999/8 "2004-07-10T07:38:19Z")

</div>

@ 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?

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 10, 2004, 9:05am UTC](https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999/9 "2004-07-10T09:05:19Z")

</div>

Sure.

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:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 10, 2004, 9:13am UTC](https://forum.kirupa.com/t/php-xml-guestbook-tutorial/56999/10 "2004-07-10T09:13:31Z")

</div>

Thanks, then that’s cleared up=)

scotty(-:
