Bonjour,
Je reviens vers vous car en travaillans sur le remote upload j'ai un soucis que je m'escrime depuis deux ou trois heures a résoudre sans succés ...
voici mon code :Code:
1
2
3
4
5
6
7
8
9
10
11
12
13 function stream_notification_callback($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) { $key = $_POST['APC_UPLOAD_PROGRESS']; $array = array ( 'total' => $bytes_max, 'current' => $bytes_transferred ); apc_store($key, $array); } $ctx = stream_context_create(); stream_context_set_params($ctx, array("notification" => "stream_notification_callback")); $file = fopen ($url, "rb", false, $ctx);
voici le résultat (a un instant t) :
Sachant que le fichier fait 600MCitation:
{"total":346,"current":29416120}
Merci