Ghost Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brentbacardi
    Confirmed User
    • Nov 2009
    • 1425

    #1

    Ghost Code

    I only notice this on shared hosting but sometimes pages display content that's just not there in the code... like I can have a file that only says hello in it and what displays is a form or something that is used elsewhere on the site or maybe that I used to have in that file but have deleted the code for it.

    Does this happen to anyone else?
    Go Fuck Yourself!
  • cooldude7
    Confirmed User
    • Nov 2009
    • 4306

    #2
    never happened to me.,

    Comment

    • ottopottomouse
      She is ugly, bad luck.
      • Jan 2010
      • 13177

      #3
      Originally posted by brentbacardi
      I only notice this on shared hosting but sometimes pages display content that's just not there in the code... like I can have a file that only says hello in it and what displays is a form or something that is used elsewhere on the site or maybe that I used to have in that file but have deleted the code for it.

      Does this happen to anyone else?
      It's cached somewhere then, either directly on your computer or in your browser if you're using a proxied one or something taking the load off the server.
      ↑ see post ↑
      13101

      Comment

      • brentbacardi
        Confirmed User
        • Nov 2009
        • 1425

        #4
        I tried ie, ff and chrome, same problem. And I deleted cookies and temp files...

        This just happened last night:

        I have a pretty standard html content on a page, i change it to php and add include file1.php at the top.

        I load page, it somehow thinks to include file2.php at the top. I never included file 2 ever on this page so how the fuck is it displaying there. That cannot be a cache or cookie issue.

        I contact support at host company, they said they changed the way the include file url was written from http://location/location/file1.php to /../../file1.php but I looked at the code and it looks the same to me but now it works....

        wtf!

        Another time, a totally blank index.html was displaying a shit ton of chinese characters... i never use anything with chinese langauge packs or anything like that and the file was totally empty yet kept doing this.

        wtf!

        From the response so far I think im going crazy...
        Go Fuck Yourself!

        Comment

        • borked
          Totally Borked
          • Feb 2005
          • 6284

          #5
          looks to me like your host is screwing with you... this is a shared hosting account I gather?

          when including files, make sure the correct file is being included with an:
          echo __FILE__;

          that will tell you which file (and path) you are including...

          with your chinese character nonesense, are you sure your server is sending out the correct character set? Sounds like you're on a chinese-language OS and the chinese characters are something from a standard error page....

          drop me an email if you want me to take a look....

          For coding work - hit me up on andy // borkedcoder // com
          (consider figuring out the email as test #1)



          All models are wrong, but some are useful. George E.P. Box. p202

          Comment

          • ArsewithClass
            So Fucking Banned
            • Mar 2007
            • 7957

            #6
            Never happened to my server and code... Hope you get it sorted

            Comment

            • borked
              Totally Borked
              • Feb 2005
              • 6284

              #7
              Originally posted by ArsewithClass
              Never happened to my server and code... Hope you get it sorted
              it's never happened to my server or code, but thanks for your helpful input
              $postcount++

              For coding work - hit me up on andy // borkedcoder // com
              (consider figuring out the email as test #1)



              All models are wrong, but some are useful. George E.P. Box. p202

              Comment

              • baddog
                So Fucking Banned
                • Apr 2001
                • 107089

                #8
                Notify your host. The server may have been compromised.

                Comment

                • brentbacardi
                  Confirmed User
                  • Nov 2009
                  • 1425

                  #9
                  Good idea to echo that out... and ok, interesting.

                  This happened to me on 3 different companies shared hosting and 2 are popular hosting companies that anyone would recognize because everyone uses them.

                  Maybe it happens to me because I own and log into many different cheap hosting accounts because I set up websites for people and upgrade their shit often.
                  Go Fuck Yourself!

                  Comment

                  • BIGTYMER
                    Junior Achiever
                    • Nov 2004
                    • 17066

                    #10
                    Did you try to translate the Chinese text?

                    Comment

                    • brentbacardi
                      Confirmed User
                      • Nov 2009
                      • 1425

                      #11
                      No but I probably should have... too late now... maybe next time.
                      Go Fuck Yourself!

                      Comment

                      Working...