Has anyone merged Php and Flash to make a CMS solution?

Discussion in 'PHP' started by eFinder, Jun 19, 2009.

  1. #1
    I would really like to see the power of databases and php code, implemented into a dynamic flash application. Has anyone tackled this subject. Can you point me in the right direction so I can do some more research on the subject.
     
    eFinder, Jun 19, 2009 IP
  2. Social.Network

    Social.Network Member

    Messages:
    517
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    35
    #2
    Are you looking for anything specific? There are many examples of Flash-based, data-driven, applications (e.g. search engines, mash-ups, business applications, games, etc) on the web.
     
    Social.Network, Jun 19, 2009 IP
  3. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #3
    You can call external files and send values from Flash to php scripts and back and forth ..
    If you know action script it should make sense, if not look on Google for using php with Flash 9 or 10
     
    ezprint2008, Jun 20, 2009 IP
  4. Tribalmaniac

    Tribalmaniac Peon

    Messages:
    7
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I used to do this alot when I was working with flash alot. The easiest way to do this is with a mysql backend where PHP will write to the database (as with a normal CMS) and then collect the information into flash using xml. You can either parse an xml file on the fly from php or get a php page which appears as an XML file :)

    I have an example so just pm me and ill send you the link :)

    There are quite a few xml into flash tutorials and a few php into xml tutorials around :) It's really not complicated either, for instance a simple gallery could just be

    
    <gallery>
       <item>
          <image>myimage.jpg</image>
          <caption>This is an image</caption>
       </item>
    </gallery>
    
    Code (markup):
     
    Tribalmaniac, Jun 20, 2009 IP
  5. Sudoku-Master

    Sudoku-Master Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    years ago i buyed a little flash website with phpscripts in the background to edit the content... but the phpscripts had have no security, no password etc... everybody could send a request to edit the content... there was only a password in flash for the content edit forms...

    hmm... maybe I should look if anybody is usind these flash cms today... a new free link source...
     
    Sudoku-Master, Jun 20, 2009 IP
  6. eFinder

    eFinder Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks alot for your input everyone, a big help on getting me in the right direction. I think XML is the solution I'm looking for to bridge the 2. I was trying to wrap around my head the concept of a flash homepage, where a community could interact together in various ways and have a sign-in feature with "registered content access" to special parts of the main flash app or a different flash secion that works with the community. IT would be a music-producer based site offering downloads and tutorials by me, I would just like to have a little something different as far as interaction. So I picked up flash hoping to make that interactivity, and I guess I have a whole lot more to learn to open a "multi-player" flash driven site, with Php and XHTML as the structure for holding the flash content. You say the security is bad huh? could you explain a little more on the security holes of doing this type of site..
     
    eFinder, Jun 20, 2009 IP
  7. Tribalmaniac

    Tribalmaniac Peon

    Messages:
    7
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I think the security issues are things like the way that people can decompile swf files unfortunately, they can see your code and see where your information is coming from. As your information is stored out in the open in XML files it's viewable by everyone unless you protect the content with session variables but even then you will have to have good debugging in flash to deal with those issues. I think that there are not that many more security risks than a normal PHP page and I think with a good amount of research you can overcome them all, good luck :)
     
    Tribalmaniac, Jun 20, 2009 IP
  8. Cloudberries

    Cloudberries Peon

    Messages:
    74
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    There's no inherent security risk present in having the main site data XML files available to all (like the menu structure, page contents etc) unless you're specifically transmitting secure data, e.g. passwords - which you probably shouldn't be doing anyway

    The main problem comes when you want user-specific data passed (e.g. data relating to a specific user account) - for that you would need some more complex client-server communication
     
    Cloudberries, Jun 20, 2009 IP
  9. Tribalmaniac

    Tribalmaniac Peon

    Messages:
    7
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I meant if it was a sign-up service, the data available to those who have signed up will be available to both, sorry for the confusion
     
    Tribalmaniac, Jun 21, 2009 IP