There are little ways to protect your php script.
First, you should make sure the directory the script is in has 701 so just in case if anyone tries to list your directory. they won't see the file name to view the codes locally.
You're pretty much safe from remote attack. Just make sure you don't have one of those programs that let you see any file in your directory like, view.php?/home/user/blah == really bad.
Having your directory 701 should protect you from local users on the webhost.
Quoc Le
Ares Network
http://www.aresnetwork.com