php - IIS 404 error on existing text file -
i'm running project on server runs iis 7.5
there's strange error have never seen. project written codeigniter. i'm converting videos ffmpeg.exe , writing results in separate text files each video. , in client side reads text file progress.
but server throws 404 error existing txt file. keeps throwing error until restart server. after restarting server, can able show text file.
everything else works perfect. please me.
edit:
.txt files reachable after amount of time. it's not how time should pass.
i found solution. isn't solution source of problem works me.
i think, iis throwing 404 error because file being processed , locked ffmpeg. getting file contents file_get_contents() via http address , returns empty string or error message. decided use physical address of file , use read_file() function output buffering.
it's working without error.
Comments
Post a Comment