PHP Help Please

Discussion in 'PHP' started by joemama12345, Mar 28, 2007.

  1. #1
    Ran into another problem, but this one has been bugging me for awhile. Whenever I edit anything, even just a word of text, the php script goes crazy and displays the whole really weird. If anyone has any suggests, please tell me. If I need to get more specific, just ask.

    To illustrate:

    Before edit:
    http://wwwDOTproxy1.30mbDOTcom/


    After edit:
    http://wwwDOTproxy1.30mbDOTcom/test/


    Also, the after edit keeps trying to redirect me to erattle.com. Is that just my comp or do you guys see that too? I checked all the scripts with the find command for erattle and came up empty.

    Thanks Again!
     
    joemama12345, Mar 28, 2007 IP
  2. Wyla

    Wyla Well-Known Member

    Messages:
    924
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #2
    proxy1.30mb.com/test/ looks good to me....
     
    Wyla, Mar 28, 2007 IP
  3. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The problem is the lack of styling: the 'test' one seems to be pointing to a CSS file in a subdirectory ('proxy0.4_macos') and the 'Manage Cookies' link points to the same subdirectory, too.

    Obviously you're using a 'smart' editor: it would have been a lot more helpful if you told us which one you were using... I'm guessing that there might be a setting somewhere in the editor that sets the 'root' of the files and it's wrong, maybe?
     
    TwistMyArm, Mar 28, 2007 IP
  4. joemama12345

    joemama12345 Peon

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sorry, I'm using Dreamweaver. And when you say that they look the same, do you mean the both look exactly identical with the blue background and everything? Because they look different to me.

    Thanks for the help so far.
     
    joemama12345, Mar 29, 2007 IP
  5. Wyla

    Wyla Well-Known Member

    Messages:
    924
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #5
    There is no CSS style sheet so everything is white and default text and what not.

    needs to be ../style.css
     
    Wyla, Mar 29, 2007 IP
  6. joemama12345

    joemama12345 Peon

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have a file called style.css in the test folder already.
     
    joemama12345, Mar 29, 2007 IP
  7. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yeah, but as I said earlier the index file in the test directory is looking for the CSS file in a subdirectory.

    Like I said, you need to fix that to point to the test directory.
     
    TwistMyArm, Mar 29, 2007 IP
  8. Wyla

    Wyla Well-Known Member

    Messages:
    924
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #8
    In source:
    
    <head>
      <title>Proxy 1</title>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      <link rel="stylesheet" type="text/css" href="proxy0.4_macos/style.css" media="all" />
      <script src="proxy0.4_macos/javascript.js" type="text/javascript"></script>
    </head>
    
    Code (markup):
    Should be:
    
    <head>
      <title>Proxy 1</title>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      <link rel="stylesheet" type="text/css" href="style.css" media="all" />
      <script src="proxy0.4_macos/javascript.js" type="text/javascript"></script>
    </head>
    
    Code (markup):
     
    Wyla, Mar 29, 2007 IP
  9. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #9
    ... plus you have to change where it's looking for your JS file, too.

    That was why I asked about the editor and mentioned possibly having to change your 'root'.
     
    TwistMyArm, Mar 29, 2007 IP
  10. joemama12345

    joemama12345 Peon

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Well, now they look the same, but the second one doesn't work when you input a link. Would this be because of the js problem? How would I fix that?
    (Thanks a lot for the help so far!)

    Also, when I click on "Manage Cookies" it goes to arcade5.com or erattle.com for some reason. I've searched all of the scripts for both sites, and came up empty.
     
    joemama12345, Mar 29, 2007 IP
  11. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #11
    It could very well be the JS thing, but are you serious about not knowing how to fix that? You know how to fix the CSS problem and the JS problem is the same... think it over a little bit and you will have it fixed quicker than waiting on an answer here.

    Hint: when HTML needs a JS file, you have to tell it where it is CORRECTLY. You're not doing that at the moment.

    Like I've been hinting at all this time, there's probably something in your editor that is setting these paths without your interaction. Either fix it in the first place and stop all the silliness or use another editor. Or step through it one by one like you are now, hoping that you've got everything this time...
     
    TwistMyArm, Mar 30, 2007 IP
  12. Wyla

    Wyla Well-Known Member

    Messages:
    924
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #12
    Lol. Learn to think for yourself. This is a REALLY easy problem and is fixed just like the stylesheet.
     
    Wyla, Mar 30, 2007 IP
  13. joemama12345

    joemama12345 Peon

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Gotcha, problem solved. Thanks guys.
    (In case anyone searches this later with the same problem :))

    THIS:
    <head>
      <title>Proxy 1</title>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      <link rel="stylesheet" type="text/css" href="style.css" media="all" />
      <script src="proxy0.4_macos/javascript.js" type="text/javascript"></script>
    </head>
    Code (markup):
    GOES TO THAT:
    <head>
      <title>Proxy 1</title>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      <link rel="stylesheet" type="text/css" href="style.css" media="all" />
      <script src="javascript.js" type="text/javascript"></script>
    </head>
    Code (markup):
     
    joemama12345, Mar 30, 2007 IP