/    Sign up×
Community /Pin to ProfileBookmark

anyone got Ming to work (under windows)?

using php 4.3.11

i’ve uncommented out the [B]php_ming.dll[/B] line in [B]php.ini[/B] and rebooted apache…

[B]phpinfo[/B] states that the “Ming SWF output library” is loaded…and reports version 0.2a…

but the following test script error’s with this message:

[B]Warning: Cannot modify header information – headers already sent by (output started at C:Program FilesApache GroupApache2roottestingphpflash2.php:9)[/B]

i’ve a couple of others scripts, which error also…

BAH! any advice? (i’ve tried searching, to not much luck)

[CODE]<?php

$mov=new SWFMovie();
$mov->setDimension(200,20);

$shape=new SWFShape();
$shape->setLeftFill($shape->addFill(0xff, 0, 0 ));
$shape->movePenTo(0,0);
$shape->drawLineTo(199,0);
$shape->drawLineTo(199,19);
$shape->drawLineTo(0,19);
$shape->drawLineTo(0,0);

$mov->add($shape);
header(‘Content-type: application/x-shockwave-flash’);
$mov->output();

?>[/CODE]

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @hitecbill spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...