Title: Weird codes in PHP files
Last modified: August 31, 2016

---

# Weird codes in PHP files

 *  [bioniczoid](https://wordpress.org/support/users/bioniczoid/)
 * (@bioniczoid)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/weird-codes-in-php-files/)
 * Hi, a couple of weeks ago my site was full of malware codes. I cleaned EVERYTHING,
   every file in my site. I replace the wp-includes and wp-admin with new files 
   too. And then i moved my site from one hosting to another.
 * The thing is that now when i want to enter my site without “www.” an error appears.
 * “Warning: cannot modify header information – headers already sent by… relationships.
   php)” -> [http://relacionessaludables.cl/error1.png](http://relacionessaludables.cl/error1.png)
 * When i edit that file i saw weird codes in line 1. -> [http://relacionessaludables.cl/error2.png](http://relacionessaludables.cl/error2.png)
 * I deleted them and now i can access my site without “www.”
 * ¿Someone knows what are that codes in line 1?

Viewing 1 replies (of 1 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 3 months ago](https://wordpress.org/support/topic/weird-codes-in-php-files/#post-7173372)
 * It looks like you’re still hacked. As interesting as the malicious code may be,
   it may be better to focus on cleaning up the hack a second time.
 * You need to start working your way through these resources:
    - [https://codex.wordpress.org/FAQ_My_site_was_hacked](https://codex.wordpress.org/FAQ_My_site_was_hacked)
    - [https://wordpress.org/support/topic/268083#post-1065779](https://wordpress.org/support/topic/268083#post-1065779)
    - [http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/](http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/)
    - [http://ottopress.com/2009/hacked-wordpress-backdoors/](http://ottopress.com/2009/hacked-wordpress-backdoors/)
 * Additional Resources:
    - [http://sitecheck.sucuri.net/scanner/](http://sitecheck.sucuri.net/scanner/)
    - [http://www.unmaskparasites.com/](http://www.unmaskparasites.com/)
    - [https://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html](https://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html)

Viewing 1 replies (of 1 total)

The topic ‘Weird codes in PHP files’ is closed to new replies.

## Tags

 * [php codes](https://wordpress.org/support/topic-tag/php-codes/)
 * [weird](https://wordpress.org/support/topic-tag/weird/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/weird-codes-in-php-files/#post-7173372)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
