That fixed the line 37 error, but I still get the errors below. Could it be that the installed.png file is corrupt? I can't open that file in any program that I have here.
Warning: fopen(Connections/installed_gallery.txt) [function.fopen]: failed to open stream: No such file or directory in /data/22/1/12/150/1990802/user/2176385/htdocs/gallery/admin_gallery/images/installed.png on line 15
Warning: filesize() [function.filesize]: stat failed for Connections/installed_gallery.txt in /data/22/1/12/150/1990802/user/2176385/htdocs/gallery/admin_gallery/images/installed.png on line 16
Warning: fread(): supplied argument is not a valid stream resource in /data/22/1/12/150/1990802/user/2176385/htdocs/gallery/admin_gallery/images/installed.png on line 16
Warning: fwrite(): supplied argument is not a valid stream resource in /data/22/1/12/150/1990802/user/2176385/htdocs/gallery/admin_gallery/images/installed.png on line 18
Warning: fclose(): supplied argument is not a valid stream resource in /data/22/1/12/150/1990802/user/2176385/htdocs/gallery/admin_gallery/images/installed.png on line 19