Announcement

Collapse
No announcement yet.

kate opening php files as read only?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    kate opening php files as read only?

    Is anybody else getting this? Got an idea how to fix it?

    It ain't file permissions.

    thanks-
    we see things not as they are, but as we are.
    -- anais nin

    #2
    Re: kate opening php files as read only?

    Are the PHP files, by chance, ones that are 'in use'?
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: kate opening php files as read only?

      Originally posted by Snowhog
      Are the PHP files, by chance, ones that are 'in use'?
      Nope.

      I run a vBulletin board and ran across it during an upgrade. I was trying to edit config.php before uploading it to my web host.

      Interestingly, I renamed the file to config.txt and kate still wouldn't write to it. nano edited it as php just fine.
      we see things not as they are, but as we are.
      -- anais nin

      Comment


        #4
        Re: kate opening php files as read only?

        I cleaned the email address, username and password out of the attached file and renamed it with a .txt extension. kate won't edit it, even as a text file but will edit other text files.

        Go figure.
        Attached Files
        we see things not as they are, but as we are.
        -- anais nin

        Comment


          #5
          Re: kate opening php files as read only?

          Note: Running Karmic 9.10 here.

          The file you uploaded is still named index.php, even though your upload description indicates it's index.txt. That said, opening your attachment in Kate does as you say - opens in Read Only mode. However, if I really rename the file to index.txt, Kate will happily open it for editing. One can then, make changes as one likes, save it as such, and then rename it back to index.php.

          Not elegant, and doesn't explain the why of it, but...

          This is the exact message that Kate issues when opening the index.php file:
          Attached Files
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Re: kate opening php files as read only?

            Originally posted by Snowhog
            Note: Running Karmic 9.10 here.

            The file you uploaded is still named index.php, even though your upload description indicates it's index.txt. That said, opening your attachment in Kate does as you say - opens in Read Only mode. However, if I really rename the file to index.txt, Kate will happily open it for editing. One can then, make changes as one likes, save it as such, and then rename it back to index.php.

            Not elegant, and doesn't explain the why of it, but...

            This is the exact message that Kate issues when opening the index.php file:
            It's gotta be the file then. Interesting that I don't get a warning.

            Thanks, Snowhog
            we see things not as they are, but as we are.
            -- anais nin

            Comment


              #7
              Re: kate opening php files as read only?

              Also, file properties should show it as a php file even with a .txt extension because of the <?php at the top of the file.

              If I go to Tools and untick Read Only I can then edit the file.

              Strange. Think I'm gonna bug this one.
              we see things not as they are, but as we are.
              -- anais nin

              Comment


                #8
                Re: kate opening php files as read only?

                I'd say that's appropriate. I even when so far as to set up a PHP Session in Kate, load it before opening the index.php file, and still got the warning and the file opening in RO mode.
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  Re: kate opening php files as read only?

                  Yup. Something ain't right.

                  Thanks again, Snowhog.
                  we see things not as they are, but as we are.
                  -- anais nin

                  Comment


                    #10
                    Re: kate opening php files as read only?

                    Notabug. At least I don't think so.

                    I got to looking at the file I uploaded - if you look at the bottom of the file you'll see it's machine-generated on the fly as the file contains the date and time it was downloaded toward the bottom of the file. I tried a couple more vbulletin php files with the same result so I went and downloaded a couple of php scripts from other sources and they opened RW just fine.

                    Okay. I'm gonna bug vBulletin, not kate
                    we see things not as they are, but as we are.
                    -- anais nin

                    Comment


                      #11
                      Re: kate opening php files as read only?

                      Interesting!
                      Attached Files
                      Windows no longer obstructs my view.
                      Using Kubuntu Linux since March 23, 2007.
                      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                      Comment

                      Working...
                      X