Hi,
I need some help here.
Is it possible to close an HTTP connection in the middle of a php
script?
For example:
<html>
<body>
This is a web page
</body>
</html>
<?php
shell_exec("pro gram");
?>
I know that the shell_exec statement will take a long time to complete.
But I also know that no further content needs to be delivered to the
user. Is it possible to close the connection so that the browser is not
hanging around waiting for more information, but the php script keeps
running on the server?
Thanks for any help.
I need some help here.
Is it possible to close an HTTP connection in the middle of a php
script?
For example:
<html>
<body>
This is a web page
</body>
</html>
<?php
shell_exec("pro gram");
?>
I know that the shell_exec statement will take a long time to complete.
But I also know that no further content needs to be delivered to the
user. Is it possible to close the connection so that the browser is not
hanging around waiting for more information, but the php script keeps
running on the server?
Thanks for any help.
Comment