PDA

View Full Version : Which one is best ?


Skinner
01-05-2004, 12:22 AM
Hey guys im new with this integrating side-server but i need to know more specific on it. I was wondering which one is GOOD, COMPATIBLE (in terms of OS) and RELIABLE.

Flash x PHP
Flash x XML
Flash x ASP

Im lookin forward to Flash x ASP. What you think?
I wanna create some login modules.

Advise needed ;)

Cheers,
Skinner

dzy2566
01-05-2004, 09:59 AM
I think that they're all pretty reliabale and depending on what you're doing, each have their ups and downs. I think ASP vs. PHP might come down to personal preference, but both have capabilities beyond XML on its own. I'm no expert though, perhaps someone more versed could elaborate.

snapple
01-05-2004, 10:14 AM
I dont think XML really counts as a step towards the server-side.

XML, i'd argue that there is really limited use for it anyway. Its not a whole lot different from pulling user-friendly text file from another file. I dont consider it a server-side language, and if your going to try and head that way - then why not use PHP or ASP?

Out of the two more sensible options, i would go for PHP, intergration with Flash is covered on-line and in books with far more depth and is a much better option.

I think XML is a pain in the arse, i find it quite difficult to build applications with it. The most i built was a dynamic menu that built is self with rollOvers, that the user could update all. The whole thing was done using XML - and it was a bloody nightmare.

If you compare the way you'd construct and execute a query with PHP and insert data into the database - and then compare what you have to do with XML - its joke:


var keepCount = _root.XMLmenu.myXMLdoc.firstChild.childNodes.lengt h;
myNewDoc = _root.XMLmenu.myXMLdoc;
newNode = myNewDoc.createElement("USER_SITE");
newNodeTwo = myNewDoc.createElement("SITE_COMMENT");
newNodeThree = myNewDoc.createElement("DATE");
newtext = myNewDoc.createTextNode(_root.XMLmenu.control.comm ent);
newTextTwo = myNewDoc.createTextNode(_root.XMLmenu.control.date );
myNewDoc.firstChild.appendChild(newNode);
myNewDoc.firstChild.childNodes[keepCount].appendChild(newNodeTwo);
myNewDoc.firstChild.childNodes[keepCount].appendChild(newNodeThree);


........whats the point of all that, just to insert something into a node?

Compare that to a quick and easy query:


$query = "INSERT INTO books VALUES

('".$isbn."', '".$author."', '".$title."', '".$price."')";


//run the query
$result = mysql_query($query) or die(mysql_error());


........two seconds and its done !!!

I'd stay away from XML.

Regards, snapple :)

senocular
01-05-2004, 10:20 AM
Originally posted by snapple
Out of the two more sensible options, i would go for PHP, intergration with Flash is covered on-line and in books with far more depth and is a much better option.

I agree. PHP is free (and not M$ like ASP) so you'll find it used a lot more and more people will be familiar with it, hense, more help can be found for it.

littleRichard
01-05-2004, 03:50 PM
Personally I like PHP more, but that's just my preference. ASP and PHP should both be able to do anything you need.

I think it's best to just know both. You never know who you might end up working for. It's not always your choice which one you get to use.

As far as using PHP just because more flashers use it I think is bad logic. There are tons of people using ASP and Flash together. Understanding the concepts of sending recieving data from the server is what matters. The rest is just syntax.

Cheers,
Rich

Skinner
01-06-2004, 03:27 AM
Hey guys thx a million. I will try PHP ;) thank you thank you..