[PHP] Re: Time Problem: always ten past xx

2009-10-06 Thread Carsten Wiedmann
Matthias Laug schrieb:
 var_dump(strftime(%d.%m.%Y %H:%m,$time));
   ---^
 The minutes are always 10, no matter what time I get.

%m = month
%M = minute

Regards,
Carsten


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: continue working after finishing up with the http client

2009-05-27 Thread Carsten Wiedmann
Tom Worster schrieb:
 what options are there to do the following:
 
 1. receive request from client (including post data)
 
 2. do some work, update the db, prepare output for client
 
 3. send output and finish up with the client
 
 4. do some more work that might take considerable time, updating the db some
 more

| ?php
| function callback($buffer) {
| header('Content-Length: '.strlen($buffer));
| header('Transfer-Encoding : identity');
| header('Connection: close');
| return($buffer);
| }
| ob_start('callback');
|
| /*
|  * Steps 1-3
|  */
|
| while (@ob_end_flush());
|
| /*
|  * Step 4
|  */
| ?

Regards,
Carsten


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php