Instant redicting and continue executing php script -


when use header() got redicted after srcipt has finised executing, same include , when use html , put php in there iframe works after php finished.

<?php  header("location: localhost/index.html"); sleep(120); dosomethingusefull(); ?> 

as sain before index.html build after 120s. there other way can include something, redictet , script continues executing?

what this?

<?php      header("location: localhost/index.html");      session_write_close();     fastcgi_finish_request();      sleep(120);     dosomethingusefull(); ?> 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -