Can you help me with this
Hosting told me that the error in the script
Well, without digging in completely, at first sight it looks like a problem that can be solved either by your host (by making sure all dependancies for your script are met), or by you (by rewriting the script so it doesn't use unmet dependancies).
As for your question: i'm afraid i have my hands full with my daytime job and some paying projects, so i don't really have the time to rewrite a script.