php4 flash Q

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CptDondo

    php4 flash Q

    I have the following snippet I wrote that worked fine using a home-built
    ming library. Now it turns out it's not a part of PHP4, which is what I
    have:

    $f = new SWFFont("/lib/flashfonts/Bitstream Vera Sans.fdb");
    $t = new SWFText();
    $t->setFont($f);
    $t->moveTo(0, 0);
    $t->setColor(0xf f, 0xff, 0xff);
    $t->setHeight($fon tHeight);
    $t->addString("" );

    Could some kind person please clue me in on how to write this for PHP4?
    I can't find any good examples or go-bys.

    Thanks,

    --Yan
  • Schraalhans Keukenmeester

    #2
    Re: php4 flash Q

    At Mon, 11 Jun 2007 13:22:32 -0700, CptDondo let h(is|er) monkeys type:
    I have the following snippet I wrote that worked fine using a home-built
    ming library. Now it turns out it's not a part of PHP4, which is what I
    have:
    >
    $f = new SWFFont("/lib/flashfonts/Bitstream Vera Sans.fdb");
    $t = new SWFText();
    $t->setFont($f);
    $t->moveTo(0, 0);
    $t->setColor(0xf f, 0xff, 0xff);
    $t->setHeight($fon tHeight);
    $t->addString("" );
    >
    Could some kind person please clue me in on how to write this for PHP4?
    I can't find any good examples or go-bys.
    >
    Thanks,
    >
    --Yan
    AFAIK ming support was added in PHP4's early versions. I see no methods/
    properties in your example that aren't covered by it. Perhaps your host
    just hasn't built their PHP with ming support enabled.

    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


    If that's the case I don't know how to get by this limitation other than
    switching hosts or ask your current provider to enable ming.

    HTH

    --
    Schraalhans Keukenmeester - schraalhans@the .Spamtrapexampl e.nl
    [Remove the lowercase part of Spamtrap to send me a message]

    "strcmp('apples ','oranges') < 0"

    Comment

    • Captain Dondo

      #3
      Re: php4 flash Q

      V Mon, 11 Jun 2007 22:46:34 +0200, Schraalhans Keukenmeester napsal(a):
      At Mon, 11 Jun 2007 13:22:32 -0700, CptDondo let h(is|er) monkeys type:
      >
      >I have the following snippet I wrote that worked fine using a home-built
      >ming library. Now it turns out it's not a part of PHP4, which is what I
      >have:
      >>
      > $f = new SWFFont("/lib/flashfonts/Bitstream Vera Sans.fdb");
      > $t = new SWFText();
      > $t->setFont($f);
      > $t->moveTo(0, 0);
      > $t->setColor(0xf f, 0xff, 0xff);
      > $t->setHeight($fon tHeight);
      > $t->addString("" );
      >>
      >Could some kind person please clue me in on how to write this for PHP4?
      > I can't find any good examples or go-bys.
      >
      AFAIK ming support was added in PHP4's early versions. I see no methods/
      properties in your example that aren't covered by it. Perhaps your host
      just hasn't built their PHP with ming support enabled.
      >
      PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

      >
      If that's the case I don't know how to get by this limitation other than
      switching hosts or ask your current provider to enable ming.
      Yeah, the PHP docs are a bit misleading on this. With ming installed it
      works fine - but the PHP.net docs show this as only available for PHP5.

      Sorry for the confusion.

      --Yan

      Comment

      • Schraalhans Keukenmeester

        #4
        Re: php4 flash Q

        At Tue, 12 Jun 2007 00:58:32 +0000, Captain Dondo let h(is|er) monkeys
        type:
        V Mon, 11 Jun 2007 22:46:34 +0200, Schraalhans Keukenmeester napsal(a):
        >
        >At Mon, 11 Jun 2007 13:22:32 -0700, CptDondo let h(is|er) monkeys type:
        >>
        >>
        >AFAIK ming support was added in PHP4's early versions. I see no methods/
        >properties in your example that aren't covered by it. Perhaps your host
        >just hasn't built their PHP with ming support enabled.
        >>
        >http://www.php.net/manual/en/ref.ming.php
        >>
        >If that's the case I don't know how to get by this limitation other than
        >switching hosts or ask your current provider to enable ming.
        >
        Yeah, the PHP docs are a bit misleading on this. With ming installed it
        works fine - but the PHP.net docs show this as only available for PHP5.
        >
        Sorry for the confusion.
        No prob. Just checked the docs here and it says available since
        version 4.0.5. Perhaps not al php.net mirrors are fully synchronized.
        This is for the reference page only btw. The separate SWF
        functions/classes have no version info AFAICT.

        Anyway, good luck Yan!

        Sh.

        --
        Schraalhans Keukenmeester - schraalhans@the .Spamtrapexampl e.nl
        [Remove the lowercase part of Spamtrap to send me a message]

        "strcmp('apples ','oranges') < 0"

        Comment

        Working...