Regarding PHP 4 it has been stated many times on these forums that all PHP 4 environments should upgrade to PHP 5. PHP 4 is dead - simple as that.
Regarding the virus issue - if your site has been compromised then there are most likely many security issues in every aspect of your environment.
Suggest to start from scratch on a PHP 5 environment.