-=HELLBENDER=- Posted August 14, 2006 Report Share Posted August 14, 2006 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 More sharing options...
v3rb0 Posted August 14, 2006 Report Share Posted August 14, 2006 gan jau ka ar header("content-type: meklē mani gūglē!"); Link to comment Share on other sites More sharing options...
Delfins Posted August 14, 2006 Report Share Posted August 14, 2006 `Save link as` un no problema Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted August 14, 2006 Author Report Share Posted August 14, 2006 nu plzzz vai tad uz shiis pasaules nav scripts lai isaugtu downloada logu uz video? Link to comment Share on other sites More sharing options...
v3rb0 Posted August 14, 2006 Report Share Posted August 14, 2006 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 More sharing options...
-=HELLBENDER=- Posted August 14, 2006 Author Report Share Posted August 14, 2006 nop tas nestrada! Link to comment Share on other sites More sharing options...
Aleksandrs Posted August 14, 2006 Report Share Posted August 14, 2006 Bezcerīgi :) Atver manuāli(rokas grāmata?): http://lv.php.net/readfile un izlasi visus komentārus, kādi 4 ir tieši par šo tēmu. (Kāds no tiem noteikti strādas!) Link to comment Share on other sites More sharing options...
Gundars Posted August 15, 2006 Report Share Posted August 15, 2006 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 More sharing options...
-=HELLBENDER=- Posted August 15, 2006 Author Report Share Posted August 15, 2006 Man ir IE6 un man tur uzrada tikai kodu i php i html! ps. reku censos ustaisiit http://realymap.sytes.net/video.php Link to comment Share on other sites More sharing options...
Blitz Posted August 15, 2006 Report Share Posted August 15, 2006 vai nu tev php neiet vai header neesi ielicis php tagos. Skaties pats... Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted August 15, 2006 Author Report Share Posted August 15, 2006 (edited) 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 August 15, 2006 by -=HELLBENDER=- Link to comment Share on other sites More sharing options...
bubu Posted August 15, 2006 Report Share Posted August 15, 2006 RTFM: http://lv.php.net/manual/en/language.basic...-syntax.phpmode Link to comment Share on other sites More sharing options...
Gundars Posted August 15, 2006 Report Share Posted August 15, 2006 <? 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 More sharing options...
bubu Posted August 15, 2006 Report Share Posted August 15, 2006 <?php ir labāka prakse nekā <? Un Gundar: beidz taisīt tās QUOTEs. Link to comment Share on other sites More sharing options...
Recommended Posts