Please try to set the directory to 0755 instead (drwxr-xr-x). This will enable read-execute, but not write access for group and world.
If the script absolutely requires 0777 permissions, please email support@osirion.co.za for further solutions.
Most hosting companies now use suPHP servers, thus 755 will allow PHP to read, write and execute scripts just like 777 does. Because of this, most scripts work when you use 755.