Code dissapears when it's uploaded

Discussion in 'HTML & Website Design' started by Kngavl, Sep 23, 2007.

  1. #1
    Okay so I'm inserting this code : <!--#include virtual="/ad_network_388.php" --> (for the dp co-op network); into my index.html.
    When I upload my site I search that code in my source and it's not there. Wtf? I changed some other code in the site like text from 2006 to 2007, and that stayed the new site has 2007 as the text.
    Why? I don't understand why.

    Code I see in Dreamweaver:
    <div id="footer">
    <!--#include virtual="/ad_network_388.php" -->
    <p>Copyright (c) 2007 Spartansaving.com. All rights reserved.


    Code I see from my Website:
    <div id="footer">

    <p>Copyright (c) 2007 Spartansaving.com.

    The space is there. Anyone know why? Never experienced this before.
     
    Kngavl, Sep 23, 2007 IP
  2. professional-lists

    professional-lists Peon

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I had something similar happen to me this is what is was...

    Modified a document within a program, say dream weaver, and not closed the file before uploading. The document remains 'locked for editing' and uploads the file before I opened it and saved my edits.
     
    professional-lists, Sep 23, 2007 IP
  3. Kngavl

    Kngavl Peon

    Messages:
    964
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Okay, but with mine I also edited some text. The edited text appeared on the webpage while the php code did not.
     
    Kngavl, Sep 23, 2007 IP
  4. Philopoemen

    Philopoemen Peon

    Messages:
    704
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    1. That's not PHP code, that is an HTML comment.
    2. PHP code never appears on a page, it is executed on the server-side and only the result is shown.
     
    Philopoemen, Sep 24, 2007 IP
  5. professional-lists

    professional-lists Peon

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    so did you figure it out? Are you using an editor?
     
    professional-lists, Sep 25, 2007 IP