Jump to content
php.lv forumi

video faila noka4aashana


-=HELLBENDER=-

Recommended Posts

Ar kaadu scriptu lai panaak ka piemeram tu iej kada lapa un apaksa ir saisne uz video un tu supied uz vinjas BET, nevis paradas windows media.... bet noka4aashanas logs (open/save/cancel) ka lai to panaak??? negribas katru failu likt arhiva

ps. taga der gan uz datubazes,mysql un uz php esu pargajis uz shadam lietam :P

Link to comment
Share on other sites

tev tak pateica.. prasi gūglei.

reku otrajā linkā (http://actionscript.org/forums/showthread.php3?t=89784) saka ka vajag.

 

How to force a file download MPG / MPEG:

header("Content-Length: " . filesize($filename));
header('Content-Type: video/mpg');
header('Content-Disposition: attachment; filename=test2.mpg');

 

varbūt notestēt vai tas strādā ar tavā vietā? :D

Link to comment
Share on other sites

tev tak pateica.. prasi gūglei.

reku otrajā linkā (http://actionscript.org/forums/showthread.php3?t=89784) saka ka vajag.

 

How to force a file download MPG / MPEG:

header("Content-Length: " . filesize($filename));
header('Content-Type: video/mpg');
header('Content-Disposition: attachment; filename=test2.mpg');

 

varbūt notestēt vai tas strādā ar tavā vietā? :D

 

header("Content-Length: " . filesize($filename)); Shsi laikam nestradaja uz IE5 kautkadu subversiju.

header('Content-Type: video/mpg'); - varbut sheit janorada cits mime type, ja fails nav mpega.

 

Bet taa principaa ir jastraadaa:)))

makelaa veel veel glukus augshaa vai apakshaa:)))

Link to comment
Share on other sites

tagos man ir ieligts a mosk nepareizi

<php>
<body>
header("Content-Length: " . filesize 31mb($filename));
header('Content-Type: video/wmv');
header('Content-Disposition: attachment; filename=realymap.wmv.mpg');
</php>
</body>

un php man strada jo man majaslapa ari ir no php http://realymap.sytes.net/index.PHP

Edited by -=HELLBENDER=-
Link to comment
Share on other sites

<?

header("Content-Length: " . filesize 31mb($filename));

header('Content-Type: video/wmv');

header('Content-Disposition: attachment; filename=realymap.wmv.mpg');

 

//sutam failu ar dazhadam metodem, nekas vairak nav jaliek, nekadi body,nekadi citi hmtl tagi

//tikai headeri un dati

 

?>

Link to comment
Share on other sites

×
×
  • Create New...