Yes, you could work on the script locally and when all is done you should be able to upload all the files and the databases to your hosting account. I suggest you to locally coding all applications using the same environment before uploading them. So try (as much as possible) to use the same version of PHP, Mysql on your local computer as the versions installed on ths server.
I hope it helps!
