If i have virus on my computer...and i upload those php files to webserver..

Discussion in 'PHP' started by romeo2010, Apr 25, 2008.

  1. #1
    If i have virus on my computer...and i upload those php files to webserver..
    because of the virus is it possible that it eats up all the server resources and make the cpu goes 100%?
     
    romeo2010, Apr 25, 2008 IP
  2. ResonanceG

    ResonanceG Banned

    Messages:
    391
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No. Unless the server computer has a virus (very rare). PHP files are not read in the same way as EXE files and thus a virus would just show up as plan text if it infected a PHP file.
     
    ResonanceG, Apr 25, 2008 IP
  3. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #3
    Anything's possible given the right conditions.

    It's unlikely that there's a bonified virus piggybacking your PHP files, though stranger things have happened.
    If anything, it would probably be a purposely poor written script designed to run through endless, worthless loops creating and deleting megs worth of garbage data.

    If you save a copy of the file with all of the characters removed so essentually it should be an empty file, and then you look at that copy through something like Explorer and it has a non-zero filesize, there may be something piggybacking the file. If that size is only 3 bytes, it's probably just a UTF-8 signature though and no cause for concern.

    It would be nice to see a copy of the file in question, that way poorly written script can be ruled out.
     
    joebert, Apr 25, 2008 IP
  4. romeo2010

    romeo2010 Peon

    Messages:
    183
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    the problem is any phpscript i upload to the dedicated server it reacts to it cpu goes high...... when they kill my account server goes to normal.....


    How to Deal with that?
     
    romeo2010, Apr 26, 2008 IP
  5. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #5
    optimize the php script

    Hire someone who can optimize


    Regards

    Alex
     
    kmap, Apr 26, 2008 IP