in reply to Perl variable find replace

It's not clear what you want. Do you want a RE to strip out that php and a way to apply it to multiple files? How about some sample input?

It looks like your server was compromised here, you might want to restore it from a known good backup instead of trying to clean up the mess. (and don't use windows servers..)