Welcome, Guest
  • Author Topic: wont work  (Read 4500 times)

    mock tudor

    • Server what's that
    • *
    • Posts: 4
      • View Profile
    wont work
    « on: 05/02/02, 10:49 »
    HI there -

    i have been all afternoon sifting through the various postings on - but i cant get fix this guestbook - though at first glance my problem appears to be  the same as  monkonfire's - http://www.flash-db.com/Board/index.php?board=12;action=display;threadid=42

    i get the same error appearing in the entries panel, at the initial loading and after attempted postings.

    ";
         for ($n = $NumLow; $n

    You mentioned a possible missing " in the code - where would i look for this?

    the URL  i am using is http://www.law.gla.ac.uk/tendernation/guestbook/guestbook.swf
    and the code is at http://www.law.gla.ac.uk/tendernation/guestbook/guestbook.swf

    I have spoken with (NT) server manager - and checked that PHP4 is in use, and that no permisiosn have been placed on the .php file.

    Can you tell me what i am doing wrong here???

    Many thanks for you help


    STuart

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re:wont work
    « Reply #1 on: 05/03/02, 18:00 »
    Well.....
      This is the problem. Set the permissions of the "guestbook.txt" file to either 666 or 777.  666 is better for security reasons, both will work.  If this does not fix the problem then post it. Lates.
                                                                        -Ian

    Karl

    • Server what's that
    • *
    • Posts: 12
      • View Profile
      • Email
    Re:wont work
    « Reply #2 on: 05/07/02, 19:40 »
    I seem to have the same problem as Mock Tudor on this.

    I read the other post and have set the permissions on the TXT file, I have tested this out on two different servers and no joy. Keep getting
    ";
        for ($n = $NumLow; $n

    Anyone solve this or locate the missing " in the code?


    Thanks again

    Karl

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re:wont work
    « Reply #3 on: 05/08/02, 11:00 »
    Is the text file in the same directory as the php?
    Is the name of the textfile changed from what the php is referenceing to?
    did you change the php code?
    if so...download the source files and use that php file.

    Karl

    • Server what's that
    • *
    • Posts: 12
      • View Profile
      • Email
    Re:wont work
    « Reply #4 on: 05/08/02, 12:14 »
    Thanks for your response

    Yes to all your questions, in fact I tried more combinations with the original script then a cocktail barman and have come to the conclusion that my two hosting accounts don't support PHP.

    I tried the advised test scripts

    <?php
    phpinfo();
    ?>

    Ask me to download the file

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

    Displayed only "#!/usr/local/bin/php"

    What's confusing me is that I got the same errors on a W2K and a Unix(standard) servers...

    Could someone be so kind as to upload the two test scripts above and send me the link so I can see what should be displayed and then argue this out with my hosting companies. ;D

    Thanks again

    Karl

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re:wont work
    « Reply #5 on: 05/08/02, 13:30 »
    all that you have t do to test for php4 support is make a php file.....name it test.php.....and put this code in it.....
         <?php
           phpinfo();
         ?>

    You can make this file with notepad.  Just type in the name when you save it and select file type as all file types.  Open a browser window after uploading the file to your server.  Now type in the address to the test.php file and it should display endless amounts of information on how php is configured on your server, if it is.

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re:wont work
    « Reply #6 on: 05/08/02, 13:31 »
    oh and the file I asked you to dowload was the source files for the guestbook.  So you could upload the Guestbook.php file to your server instead of the one that you are using. To see if it your code that is causing the problem.

    Karl

    • Server what's that
    • *
    • Posts: 12
      • View Profile
      • Email
    Re:wont work
    « Reply #7 on: 05/08/02, 19:01 »
    Thanks

    I tried the original scripts and the code you suggested
     <?php
      phpinfo();
     ?>

    And the browser asked me to download the file, would you be so kind as to upload the test to your server so I can have a look what information the file should display.

    Thanks in advance

    Karl

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re:wont work
    « Reply #8 on: 05/08/02, 22:01 »
    it is always on my server....it should be under this directory.....
    http://mw9.net/Flash-DB/test.php
    « Last Edit: 05/13/08, 11:32 by BurtonRider1983 »

    Karl

    • Server what's that
    • *
    • Posts: 12
      • View Profile
      • Email
    Re:wont work
    « Reply #9 on: 05/09/02, 03:33 »
    Thanks, did all that information on the page come from the script

    <?php
     phpinfo();
     ?>

    Many thanks for all your help, I plan to get up to speed on all this fast and look forward to contributing all I can to this excellent forum and site.

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re:wont work
    « Reply #10 on: 05/10/02, 10:38 »
    Yes all of that very valuable information comes from that one funtion.  Down the road you will find yourself using some of that.

    mock tudor

    • Server what's that
    • *
    • Posts: 4
      • View Profile
    Re:wont work
    « Reply #11 on: 05/17/02, 05:34 »
    Hi BR

    thanks for the feedback.  i have been following  Karl's thread - but back to my original problem - still unsolved...
    I have been waiting to hear back from the guy who controls the server. Seems like the permission has been set on the txt file. it sits on an NT server, which has php 4 running on it. i have warned him about setting permsission on the .php file. could this cause the problem?


    i still get the same error appearing in the entries panel, at the initial loading and after attempted postings.
    ";
         for ($n = $NumLow; $n


    the URL  i am using is http://www.law.gla.ac.uk/tendernation/guestbook/guestbook.swf
    and the code is at http://www.law.gla.ac.uk/tendernation/guestbook/guestbook.swf

    hope to hear from you

    many thanks

    Stuart

    Karl

    • Server what's that
    • *
    • Posts: 12
      • View Profile
      • Email
    Re:wont work
    « Reply #12 on: 05/17/02, 06:30 »
    Your problem may be over.

    Mock T although my hosting company told me that I would have to pay extra for PHP and that it was not installed on my virtual server.

    I had a look on this site for free hosting options and came up with this http://www.tripod.lycos.co.uk/myaccount/freehosting/

    Its very fast and reliable and all I do is in the Flash movie is link to the flash file  ;D on this server.

    Problem solved.

    I know have a flash site that uses ASP and PHP.

    Hope this helps

    Karl

    mock tudor

    • Server what's that
    • *
    • Posts: 4
      • View Profile
    Re:wont work
    « Reply #13 on: 05/22/02, 10:31 »
    thanks karl - good idea. i tried and failed to get anything posted up to lycos - though i did have succes with a server i use for other stuff. cheers.


    I got it working when seen as a stand alone .swf file, but when link to and view it from within a parent movie (stored on another server) - i see the interface OK, but the panel freezes on the 'loading messages' message.  frustrating.
    i can only assume this is because it is now nested with a level of a parent movie -

    does anybody know how to resolve this kind of problem????? Karl?

    any help appreciated


    /stuart

    Karl

    • Server what's that
    • *
    • Posts: 12
      • View Profile
      • Email
    Re:wont work
    « Reply #14 on: 05/22/02, 10:51 »
    All you do is change the location level on the first frame and on the buttons

    Example

    loadVariablesNum("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHigh+"&R="+random(999), 0);

    Change to

    loadVariablesNum("GuestBook.php?NumLow="+NumLow+"&NumHigh="+NumHigh+"&R="+random(999), 1);


    Let me know how you get on.

    Karl