Jump to content

DOOZY: Hashmap.as + XML to PHP + MySQL


Recommended Posts

This is a big one so here goes:

 

I havea hashmap.as file that I want to extract and pair with an XML file to output information in PHP and MySQL.

 

The hashmap contains informations like this:

package 
{
    import flash.display.*;

    public class HashMapLoadable extends Sprite
    {
        public var AssetHashMap:Object;

        public function HashMapLoadable()
        {
            this.AssetHashMap = {directory/directory/image1.png:"directory/directory/hashedimage1.png", directory/directory/image2.png:"directory/directory/hashedimage2.png", directory/directory/image3.png:"directory/directory/hashedimage3.png", directory/directory/image4.png:"directory/directory/hashedimage4.png", directory/directory/image5.png:"directory/directory/hashedimage5.png", directory/directory/image6.png:"directory/directory/hashedimage6.png", directory/directory/image7.png:"directory/directory/hashedimage7.png", etc, etc, etc, etc,
};
            return;
        }// end function

    }
}

 

Im not too concerned about reading XML since that's fairly simple.

 

What I want to do though, is store the information from the hashmap in a format that php can use to compare with information from the XML to make the link beteween the image referenced in the XML and the hashedimage on the server.

 

I.E

XML tag

<image>directory/directory/image1.png</image> can be compared with the same hashmap value to output the hashed image url.

 

I can then  store this information in MySQL to call at the user's request.

 

Any thoughts on how I can accomplish this?

Link to comment
https://forums.phpfreaks.com/topic/220015-doozy-hashmapas-xml-to-php-mysql/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.