IPhone / Blackberry / PalmPre video verilerini hizmet Sorunları

1 Cevap php

Ben iPhone / Blackberry / PalmPre vb video veri hizmet için çalışmak noktasına çalışın am küçük bir komut dosyası var

Kod gülünç basittir:

$type = "video/3gpp"; /* get mimetype from db */
$fileid = "0001"; /* File path from db */
header( "Content-Length: " . filesize( $fileId ) );
header( "Content-type: $type" );
readfile( $fileId );

Bu sadece almak argümanlara dayalı bir dosya kimliği var ve istekte aşağı dosyayı göndermek için readfile kullanır.

However for some odd reason it only works once. If you try to access the page two times in a row on both the iPhone and BlackBerry it will work the first time. Then either any time after it will either time out or just stop responding to the request. This behavior is not the same on a non-mobile device, it works fine in Firefox/Safari/Chrome. I am fairly certain It has nothing to do with caching either on the non-mobile side.

Bu ne olabilir neden herhangi bir fikir değil mi?

1 Cevap

Bu PHP PHP veri gönderme yaparken bir tarayıcı bağlantı kapandığında algılamak mümkün değil varlık ile benim bazı garip davranmaya neden olabilir gibi görünüyor.

2004 yılından beri PHP açık olmuştur hatayı görebilmek http://bugs.php.net/bug.php?id=30301