Here the new version:
Beta V2.1 Changes:
+ removed the username and password from the lite-c script. You have to set it now directly in the php file.
+ added an isset() check of Port and Name like SchokoKeks did (Thanks!)
Bug fixes:
+ Bad HttpId error fixed
+ Memory problem with string fixed
Thanks for the report SchokoKeks! The problem was in ITemp_Get() where in two cases I closed the function without removing the httpResult string and freeing the HttpId. I hope that this caused the strange problems you had with str_remove().
Please test it and tell me if it's working for you now.