hi,
opendir(): SAFE MODE Restriction in effect. The script whose uid is 1221 is not allowed to access /var/www/web237/html/images owned by uid 0
dein script darf also aufgrund des aktiven safe-modes gar nicht in das verzeichnis reinkucken.
http://www.dclp-faq.de/q/q-konfiguration-safe-mode.html
gruss,
wahsaga