That's exactly what is going on, it can't print to and create the log file(s). If I hard code the path it will defeat the propose of the code cause I need the module to generate log specific for each script running. But why do you think that it does its job from one place but the browser?