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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -