Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 3 of 3
  1. #1
    brutfood is offline Registered User
    Join Date
    Nov 2001
    Location
    South Australia
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question CGI script connected to database. XML.

    I need a few leads to put me on the right track for this.

    I have MacOS X. I have Flash MX. I have (and can program) Perl, and I have mySQL. The Flash manual tells me that it's possible to get Flash actionscript to link to a server CGI script which talks to a database. I'd love to try! I'd like to be able to set-up, add entries, and make database enquires from Flash.

    So how do I get all these things talking to each other?

    I can get Flash and Perl to talk. The bit that is most of a mystery to me is the protocol between the CGI script and database. (I've used databases before - but not yet over the Internet).

    Finally, I can get round this another way, but how do I write CGI scripts that manipulate XML? I can get Flash to send and receive XML. I tried finding something about XML in the documentation that comes with Perl - but couldn'd find anything.

    Does Perl actually belong in this equation? - is there something I don't know?

    I apologise for my ignorance. Please help.

    Daniel

  2. #2
    Tigger's Avatar
    Tigger is offline Bring mich zum Licht!
    Join Date
    Nov 2000
    Location
    Germany
    Posts
    395
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I recommend PHP for connecting to a MySQL Database and write out the XML to Flash.

    You can write out XML with PHP just like you would write out HTML.

    Look at http://www.flashkit.com , they have some Tutorials about these things. And a good site for everything php is http://www.php.net

    Hope this helps!
    Blau macht gluecklich

    Try my little Flash Bomberman Game

  3. #3
    brutfood is offline Registered User
    Join Date
    Nov 2001
    Location
    South Australia
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks Tigger

    Thanks Tigger,

    That's a good lead - I can see that I'll be spending some hours exploring the Flash Kit WEB site.

    Daniel

 

 

Similar Threads

  1. Thank God the Witch Is Dead
    By Veljo in forum Mac OS X System & Mac Software
    Replies: 2
    Last Post: June 27th, 2003, 05:51 PM
  2. cgi script
    By osxmatrix in forum Unix & X11
    Replies: 9
    Last Post: February 9th, 2003, 01:17 PM
  3. Getting a CGI script to work locally on my Mac
    By simX in forum Mac OS X System & Mac Software
    Replies: 11
    Last Post: July 12th, 2002, 01:43 PM
  4. Formatting a database as an XML file
    By mromey in forum Mac OS X System & Mac Software
    Replies: 0
    Last Post: December 4th, 2001, 11:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •