How to use PHP in Java??

Discussion in 'Programming' started by CuBz, Sep 30, 2007.

  1. #1
    Does anybody know how to use flash in php?

    for instance...

    If i was to put this on a flash file:

    <?php
    echo"CuBz";
    ?>
    PHP:
    COuld i do it to just show the word CuBz on a Flash file?

    Thanks :D
     
    CuBz, Sep 30, 2007 IP
  2. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't think that would show it in the flash file. I'm not sure how flash works (if you can actually just code it) but, I thought it was used to play movies, thus you need to create the flash using a flash creator?

    Unless you are talking about javascript
     
    Lordy, Oct 1, 2007 IP
  3. theOtherOne

    theOtherOne Well-Known Member

    Messages:
    112
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Hi,

    you are able to display PHP output in flash films, although it is quite difficult I think...
    First you need to modify the PHP output so that the only output looks like a url parameter.
    e.g. in your case:
    &say=CuBz
    Code (markup):
    If you want to output more than one text at a time, just extend the string like this:
    &say=CuBz&anotherline=hello
    Code (markup):
    (note... every output must be url-encoded, i.e. spaces are written as +, etc.)

    When you are done with this you need to learn how to use the loadVariablesNum function in Flash... a good explanation seems to be on http://www.actionscript.org/resources/articles/98/1/loadVariables-Interaction-between-Flash-backend-scripts/Page1.html

    Hope I could help you ;)
     
    theOtherOne, Oct 1, 2007 IP