fix bug which reading any files
fix rule for generating script header file
add daemonize function
modify header generator to ignore php open tag
add testing php script