I have a php script which takes too long to be executed (a form for uploading large files). Upong running this I get "504 Gateway Time-out" error. Since I do not want to update php.ini for the whole server, I put set_time_limit(0); at the top of my php script; but still I get the same time-out error. What is the problem? I'm on Nginx 1.0.4.