Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.
I have a problem with my PHP / Mysql website. The index.php file is being changed, someone is adding additonal code to the page but I dont know how this is being done. Example code added:
Do you host your site on your own server or do you use a hosting service? You should check your server logs (or get your hosting service tech support to assist you). That certainly looks like something has infected your server.
It tries to load an iframe, presumably with some exploit code, but the site which hosts it is currently offline.
My guess is that you have a locally installed virus/malware which intercepts your FTP sessions and inserts these from *your* account.