Things I would like to see done in AS3

Since AS3 offers raw sockets and enables byte-arrays, there is no reason why we couldn’t build the following:

  • MySQL Connector
  • Oracle Connector
  • SVN Connector

For example, if someone wanted to make a UML modeling program online, it would be possible to plug it directly on an SVN serveur (or CVS .. or anything else you fancy), and do reverse engineering on the classes, showing you a complete UML view of your code! Then you could do live re-factoring visually, like move functions around, create new objects, and have the program update all your code for you. Now that’s what I call something usefull!

Anybody’s up for it?

AMFPHP & PHP 5.2.2 Bug

Hi. I am hosted on dreamhost and they recently upgraded their version of PHP5 to 5.2.2. There is a bug in PHP 5.2.2 where the $_GLOBALS['HTTP_RAW_POST_DATA'] never gets set, a global variable which is used by AMFPHP to read the request from the Flash application.

To fix it, edit the file gateway.php find this line of code :

[php]
$gateway = new Gateway();
[/php]
and add these lines before it :

[php]
if (phpversion()==”5.2.2″)
$GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents(“php://input”);
[/php]

Cheers!