Results 1 to 7 of 7

Thread: editing a chmodded 777 file?

  1. #1
    Join Date
    Aug 2006
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default editing a chmodded 777 file?

    Can you edit a 777 chmodded file on another persons website?
    If so, how?

    this is for legitimate and legal reasons BTW

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    You can edit the 777 file if you have downloaded via FTP or a File Management system as long as it you get it from their server to your computer. After downloading it, or editing in a File Management system, simply either upload (or save) the file where it goes on the server, and that's it.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You cannot edit a file on another server using PHP.
    There is, however, one exception.
    There are FTP functions available with PHP, that would include getting a file, editing and putting it back. (It's sorta one step from actually editing, but it does the same thing.)
    You would, of course, need the username and password. chmod wouldn't matter, either, since it's just FTP.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    actually...chmod does matter, but only if the file was created using a PHP script rather than someone uploading it via FTP. I have run into this problem many times because of that.

    Quote Originally Posted by djr33
    You cannot edit a file on another server using PHP.
    You can edit a file if they have a File Management program (such as PHP FileNavigator). For example, I can edit files on my home server, from my work computer by browsing to my FileManager in my web browser. Other than that, you cannot edit from a different computer, or server unless using FTP.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The answer is yes, if you have access to the file normally. If you can't access it without PHP, you can't access it with PHP. FTP, SSH, HTTP should all work (although I haven't seen HTTP PUT used in a long time...), and you can automate the use of a web-based file manager, as thetestingsite said.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    this is for legitimate and legal reasons BTW
    I certainly have no reason to believe you are asking this with malicious intents. However, you never know who may read what on the net, and this is the kind of question with solutions that certainly can be used for evil. Due to this, closing thread.

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Nonsense. If someone's stupid enough to allow the world FTP access to his/her files, s/he has bigger problems to worry about (like his/her upcoming brain transplant ).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •