![]() |
"Premature end of script headers:" apache
[Sat Aug 31 01:01:20 2002] [error] [client 192.168.0.114] Premature end of script headers: c:/apache/php/php.exe
das kummt wenn ich dieses file aufrufe <html> <body> <?php // This line is used here because ming it's loaded as an independant PHP extension in neuralust if ($HTTP_HOST=="www.neuralust.com") { dl ("../php_ming.so"); } /* Ming_useSWFVersion(4); */ $myFont=new SWFFont("test.fdb"); $myText1=new SWFText(); $myText1->setFont($myFont); $myText1->setColor(0,0,255); $myText1->setHeight(20); $myText1->moveTo(-$myText1->getWidth("Action Script!")/2, -$myFont->getAscent()/2); $myText1->addString("Action Script!"); $mySprite=new SWFSprite(); $firstText=$mySprite->add($myText1); for($i=0; $i<24; $i++){ $firstText->rotate(15); $mySprite->nextFrame(); } for($i=0; $i<24; $i++){ $mySprite->nextFrame(); } $myMovie=new SWFMovie(); $myMovie->setDimension(400,200); $myMovie->setBackground(255,255,0); $firstSprite=$myMovie->add($mySprite); $firstSprite->moveTo(-$myText1->getWidth("Action Script!"), 200/2+$myFont->getAscent()/2); $firstSprite->setName("myWords"); $myMovie->add(new SWFAction("if(/myWords.x>400){/myWords.x=0;}else{/myWords.x+=4;}")); $myMovie->nextFrame(); $myMovie->add(new SWFAction("gotoFrame(0); play();")); $myMovie->nextFrame(); $myMovie->save("lesson15.swf"); ?> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID=objects WIDTH=400 HEIGHT=200> <PARAM NAME=movie VALUE="lesson15.swf"> <EMBED src="lesson15.swf" WIDTH=400 HEIGHT=200 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </OBJECT> </body> </html> ich mein das is jetzt nur eins ab und zu funkts und ab und zu ned also mit verschiedenen scripts und ich weiss ned wo ich da im php.ini oder apache config drehen sollte das des funkt... alles läuft auf winXP...mit den neusten apache und php versionen vielleicht hat ja wer eine idee |
<?php
Ming_setScale(1.0); $myMovie=new SWFMovie(); $myMovie->setDimension(460,80); $myMovie->setBackground(255,0,0); header('Content-type: application/x-shockwave-flash'); $myMovie->output(); ?> zb das geht hmm naja wird wohl ming mit der win php version und dem apache ned ganz wollen vielleicht weiss wer rat ich werd dann mal testen was noch alles geht :hehe: |
<?php
Ming_setScale(1.0); $m=new SWFMovie(); $m->setRate(14.0); $m->setDimension(2000, 500); $m->setBackground(235,173,112); $f = new SWFFont("Arial"); $tx=my_text("James Shagall"); for($x=0, $y=0; $x<=100; ++$x, ++$y) { $tx->moveTo($x*20, 200*log($y+1)); $m->nextFrame(); } header('Content-type: application/x-shockwave-flash'); $m->output(); function my_text ($str) { global $m, $f; $t = new SWFText(); $t->setFont($f); $t->setColor(0,0,255); $t->addString($str); $i = $m->add($t); return $i; } ?> soda dieser code hier gibt zwar keine fehler mehr aber killt dafür Mozilla oder IE :hehe: dann hab ich einen fehler rausgefunden wenn man bei $f = new SWFFont("Arial"); ne font angiebt die scriptverzeichniss is checkt das der apache ned weil der sucht anscheinend im font verzeichniss vom windows... na bis wer was sagt debugge ich das wahrscheinlich eh selber ;) |
naja jetzt weiss ich das mein problem auf der php bug liste steht hilft mir zwar ned aber so kann ichs hinnehmen :hehe:
|
Alle Zeitangaben in WEZ +2. Es ist jetzt 19:43 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag