Jump to content

ajax triggering long job


mctrivia

Recommended Posts

PHP should finish executing the code once started, regardless of what the user does.

 

Using the code below, running the script then closing browser immediately still results in a MySQL insert.

 

<?php

sleep( 10 );

$c = mysql_connect( 'localhost', 'root', '' );
mysql_select_db( 'test', $c );

$q = 'INSERT INTO `test` SET `start` = NOW()';

mysql_query( $q );

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.