Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: Guestbook posting problem

  1. #21
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Try:
    Code:
    chmod("guestbook.php", 777);   // decimal; probably incorrect
    Once you run this, run my 2nd code, and tell me the output.
    Jeremy | jfein.net

  2. #22
    Join Date
    Jul 2008
    Location
    boston, ma
    Posts
    88
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Where do I run this? do I put this in guest_book.php?

  3. #23
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Oh, sorry the code should be:
    Code:
    chmod("guestbook.txt", 777);   // decimal; probably incorrect
    And put it in the same file as guestbook.txt.
    Once you upload the file - and Go to it. Then put this in(overwrite it):
    Code:
    echo substr(decoct(fileperms("thanks.php")),3);
    And tell me/bluewalrus the output.
    Jeremy | jfein.net

  4. #24
    Join Date
    Jul 2008
    Location
    boston, ma
    Posts
    88
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Ok I put the first line of code in the txt file. How do I overwrite it? This is what I see when I look at the properties.

  5. #25
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    What does the error message say and is it through godaddy, the ftp, or the site when accessing the txt file? If its though the ftp try going into godaddy and into your control panel and changing it there (not sure where there but somewhere hah).

  6. #26
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    oo check all the blocks or type in 777 at the bottom

  7. #27
    Join Date
    Jul 2008
    Location
    boston, ma
    Posts
    88
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    yea I checked the boxes and thats when I get the error
    Error -142: remote chmod failed

    It's the ftp that pops up the error..

  8. #28
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

  9. #29
    Join Date
    Jul 2008
    Location
    boston, ma
    Posts
    88
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Thanks Chris,
    I don't think it's a godaddy thing. I looked into it. My server is a windows server.
    I looked into the transmit(ftp) settings and took off the auto set permissions and the file still uploads as 644 and gets an error when I change to 777

  10. #30
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    there might be another work around using php to change the permissions i'll post that in a bit i'm going out right now check back around midnight or tomorrow

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •