Welcome, Guest
  • Author Topic: GuestBook Trouble Shooting and Common Problems  (Read 48379 times)

    Flash-db

    • Administrator
    • Systems Administrator
    • *****
    • Posts: 1876
      • View Profile
      • Flash-db.com
    This thread will try to address some common problems with setting up the Guestbook on different server types and systems (IIS/Apache and NT/Unix).  The way the files come in the download are for the most common way - but some servers insist on setting things up differently.

    1)  Are you certain that PHP is installed.  To check this try the following.

    Create a simple script called 'Info.php' you can use any text editor. Add the following code to that file.

    <?php
    phpinfo();
    ?>

    Test this by uploading the file to your server and running it from the browser (type in the path/URL to it online).  If that works and displays all relative info on the PHP that is installed on your server then that's not the problem.

    If that doesn't work try this.
    In some cases PHP can be run as a CGI module.  This is similiar to using PHP like Perl.  Some servers have it running it this way - I'm not sure why since it's not needed - but none the less they do.  This will test if that's the case.  Follow the same approach as in the first test but with the following in the 'Info.php' file.

    #!/usr/local/bin/php
    <HTML>
    <!-- phpinfor.php -->
       <BODY>
          <?php
             phpinfo();
          ?>
       </BODY>
    </HTML>

    If this works and the 1st one does not you'll need to include the line '#!/usr/local/bin/php' on the first line of all your scripts.  Some servers may use a different path - check with your systems Administer if that's the case.

    That doesn't work - Check to see if your server is using PHP version 3.  (this is a very old version and most servers will not be using it).  To test this rename the Info.php file to Info.php3  (with the 3 on the end of the file extension).

    ######################
    Changing Permissions
    ######################

    On unix you should be able to follow the instructions provided in the Tutorial - All you'll have to do is change the GuestBook.txt file to 666 or 777 - with 666 being more secure (using either Telnet, your FTP program, or other methods).

    Changing Permsissions with Dream Weaver:
    Try reviewing this thread:
    http://www.flash-db.com/Board/index.php?board=12;action=display;threadid=230

    Changing permissions on NT/Win2K Servers
    Follow these instructions:
    Changing permsissions On an IIS/NT/PWS server:
    http://www.flash-db.com/Board/index.php?board=12;action=display;threadid=325
    1. In windows XP/2000 go in to the folder "GuestBook".
    2. Inside the folder find the GuestBook.txt file.  
    3. Right click it and select "Security" tab.  
    4. Add internet guest account (if it's not already present) and put a check in  
        the "write" box.
    5. That's it, you should be good to go!

    Note:  Your web site files (root) have to be on an NTFS partition for the permissions tab to be in the (right click) properties of the GuestBook.txt file!  NTFS allows permissions to be set on all files where FAT 32 or 16 doesn't.  

    As a reference:
    http://www.flash-db.com/Board/index.php?board=12;action=display;threadid=325

    Hopefully that address some of the common errors.  Their will be others because as PHP can run on any Operating System and Any Server - Some systems Administrators set things up differently, and it's impossible to know what they where thinking, how they did it, and how they actually set things up.

    In some cases it's best to send a message to your systems administrator or read over the documentation provided by your hosting service regarding these matters.
    « Last Edit: 04/25/02, 05:29 by Flash-db »
    Flash-DB

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re:GuestBook Trouble Shooting and Common Problems
    « Reply #1 on: 05/17/02, 09:29 »
    Thank You Jeff about this..

    Yes, It's important to check permision of the GuestBook.txt (or whatever name you guys name it.) I figure out BUG with ws_ftp and that chmod command.. It changed values randomly and I got piss out to it. But now finally that side works. Now I need fix the flash-side again, but that's another story..  ;)

    So my wise is that after you change permision of Guestbook.txt you check the settings one more time.. :)

    (my bug would also be about my not-so-good windows NT (Im using internet at school)  )

    Have Nice Weekend,
    Vesa

    andy

    • Server what's that
    • *
    • Posts: 7
      • View Profile
      • Email
    Re:GuestBook Trouble Shooting and Common Problems
    « Reply #2 on: 11/05/02, 18:44 »
    i have ws_ftp pro and i cannot change the permissions of the GuestBook.txt files.  EVery time i try it says Chmod is not allowed

    plz help im desperate

    john tran

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    Re:GuestBook Trouble Shooting and Common Problems
    « Reply #3 on: 11/15/02, 20:45 »
    I hope you can help me , because i check out your guest book work so beautifully, but when i set the " GuestBook.swf " loaded in the holder of my "index.swf" and i changed the paths in "GuestBook.swf" i got the return when  " Submit it" but only showed the out line of that entry likes : "name:, Email: , Url:... " but not showing the " input name, Email , url or comments " .
    The path i changed in "GuestBook.swf some thing like this":

    NumLow = 0;
    NumHigh = 10;
       _root.items.loadVariables("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHigh+"&R="+random(999));
    stop();

    I just wonder do i need to change any thing in "GuestBook.php "?

    please help me out .

    Thanks

    my email : Johnatran@hotmail.com

    anna

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    Re:GuestBook Trouble Shooting and Common Problems
    « Reply #4 on: 12/04/03, 12:55 »
    Hi Andy,
    I am using ws_ftp myself, and i found the solution as to the following:

    1. Each time you need to overwrite the file, delete the file in your server first, then upload the newer one.
    2. Disconnect & Exit ws_ftp
    3. Open and connect ws_ftp again
    4. Right click > chmod > change mode
    This should work.

    To test whether the permission of the file has really been changed, disconnect, close & repeat step 2 -4 again.

    Hope this works. It worked for me.



    i have ws_ftp pro and i cannot change the permissions of the GuestBook.txt files.  EVery time i try it says Chmod is not allowed

    plz help im desperate

    Musicman

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 2685
      • View Profile
      • Email
    Re:GuestBook Trouble Shooting and Common Problems
    « Reply #5 on: 12/04/03, 13:20 »
    Hi,

    you will hardly ever see me advertise microsoft products, but the dos-style ftp program that comes with every version of windows does not have the problem you describe ....

    Musicman

    steve

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    Re:GuestBook Trouble Shooting and Common Problems
    « Reply #6 on: 12/09/03, 15:38 »
    usually i wouldn't use any ftp programs as I run my own server. unfortunately not everybody can do this. but if i were, i'd use getright. in my experience, they've got a pretty good ftp program built into their browser. load the main getright program and from the tools menu, select GetRight Browser. when that loads, click the login button on the right of the window, enter your username and password, type the ftp address and your off.

    meieasy

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    Re:GuestBook Trouble Shooting and Common Problems
    « Reply #7 on: 03/23/04, 01:56 »
    PHP+APACHE+GUESTBOOK

    Can't you show the Chinese language?

    Have what way?
    How are you!I am your Chinese friend.

    liwenzhi

    • Server what's that
    • *
    • Posts: 17
    • a Flash2PHP&mysql Fans
      • View Profile
      • interactiveplant
      • Email
    Re:GuestBook Trouble Shooting and Common Problems
    « Reply #8 on: 01/06/05, 01:30 »
    I ran into the same problem as the post above, hi , my chinese friend! Wish to know you! :D
    I continue to learn, So I'm happy!

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re:GuestBook Trouble Shooting and Common Problems
    « Reply #9 on: 01/14/05, 22:03 »
    Problems with Fonts? Make sure that they are Embed and you have to remember that client's gotta have same fonts too (client == the user behind computer surfing on your site)

    Here's livedocs info about Embedded fonts in Flash (I recommender you to read it) :)

    nettoyou

    • Server what's that
    • *
    • Posts: 1
      • View Profile
    Re: GuestBook Trouble Shooting and Common Problems
    « Reply #10 on: 11/15/05, 09:30 »
    hi @ all,

    i just downloaded the questbook2-package.
    i have a small problem with the questbook. when run the original .swf file, i get the error message:

    Error opening URL "file:///I|/%5F%5FFLASHVORLAGEN/guestbook/localhost/GuestBook.php?action=read&r=893&NumLow=0"

    i didŽnt changed anything. the gbv2.swf and the GuestBook.php are placed in the same folder.
    maybe, its a stupid question or i forgot a simple thing...
    would be really nice, if somebody could help me..

    thanks @ all

    Mohsin Sumar

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 1646
    • Mohsin Sumar, Extreme Web Technologies
      • MSN Messenger - mohsinsumar@hotmail.com
      • Yahoo Instant Messenger - mohsinsumar
      • View Profile
      • Extreme Web Technologies
      • Email
    Re: GuestBook Trouble Shooting and Common Problems
    « Reply #11 on: 11/15/05, 12:58 »
    Dear nettoyou,

    Firstly, welcome to the boards and I hope you enjoy your stay.

    Secondly, regarding the error you posted - you need to run the flash file on a webserver. Move the whole directory to a domain and access it in the following way: www.yourdomain.com/guestbook.

    I hope this helps.
    - Best Regards, Mohsin Sumar
    - Mohsin Sumar dot com is hosted by Extreme Web Technologies

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: GuestBook Trouble Shooting and Common Problems
    « Reply #12 on: 03/03/06, 02:16 »
    If you load the Guestbook in another movie or use an HTML as the container in a different folder, the path will be the one of the main movie. Let's ilustrate:

    - Your main movie is in folder /MySite
    - Your Guestbook is in folder /MySite/guestbook/
    - Your main movie loads guestbook.swf inside a level or target
    - Now your guestbook will look for GuestBook.php inside /MySite, not /MySite/guestbook/


    Possible solutions:

    - Change paths in guestbook.swf to load from /MySite/guestbook/
    - Put guestbook php script in the same folder as the main movie, /MySite in this case, and also the txt file

    Also, even when all files are in the rigth place, you nee to change this:

    http://www.flash-db.com/Board/index.php?topic=14823.new;topicseen#new

    Jorge
    « Last Edit: 09/04/06, 11:02 by Jorge Solis »