I am using this code snipet on a site and it is working perfectly. However, using the same snippet on a different site, on a different server, does not work. Other php commands are working on the page. This is really stressing me out. Here's the code:
The shortcut $_GET was introduced in 4.1.0. If one of the sites is running an earlier php version this will fail. Replace the $_GET with the full array name $HTTP_GET_VARS and this should fix the problem. Also picture should be in quotes.