First off, I'm using Linux and it doesn't have C:\Temp\ folder nor the drive C. You need to change it to fit your need. I think you are using Apache und Windows. Second can you try to run the script from the console? My script isn't meant to start in a browser. I wasn't aware that's can be a problem. The error message isn't so important at the momemt, please ignore it. Thank you.