{"id":95,"date":"2006-10-18T18:06:11","date_gmt":"2006-10-19T02:06:11","guid":{"rendered":"http:\/\/www.ericfeminella.com\/blog\/2006\/10\/18\/as3-php-loginservice-api\/"},"modified":"2012-03-04T23:30:21","modified_gmt":"2012-03-05T04:30:21","slug":"as3-php-loginservice-api","status":"publish","type":"post","link":"https:\/\/www.ericfeminella.com\/blog\/2006\/10\/18\/as3-php-loginservice-api\/","title":{"rendered":"AS3 PHP LoginService API"},"content":{"rendered":"<p>This morning I wrote a quick API which allows you to easily invoke a PHP script from Flex 2, run a query on a MySQL database for authentication, and pass the results of the query back to the Flex client. The API consists of a simple login value object and a QueryService that calls an accompanying PHP script. The PHP script then runs a query based on the login value object passed in the query string as name value pairs.<\/p>\n<p>The AS3 PHP LoginService API is intended to simply serve as a base class only. It is to be used as a starting point from which you can create a real world application based on sub-classing the QueryService to apply an <a target=\"_blank\" href=\"http:\/\/userpages.umbc.edu\/~mabzug1\/cs\/md5\/md5.html\">MD5<\/a> encryption algorithm and so forth.<\/p>\n<p>You can check out the <a target=\"_blank\" href=\"http:\/\/ericfeminella.com\/portfolio\/flex_applications\/Flex2.0\/login\/Login.html\">example<\/a>, accompanying <a target=\"_blank\" href=\"http:\/\/code.ericfeminella.com\/asdocs\/PHPLoginService-asdoc\/class-summary.html\">ASDoc<\/a> and <a target=\"_blank\" href=\"http:\/\/ericfeminella.com\/portfolio\/flex_applications\/Flex2.0\/login\/srcview\/index.html\">source code<\/a> as well as a <a target=\"_blank\" href=\"http:\/\/ericfeminella.com\/portfolio\/flex_applications\/Flex2.0\/CairngormLogin\/CairngormLogin.html\">Cairngorm 2.0 implementation<\/a> which I created.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This morning I wrote a quick API which allows you to easily invoke a PHP script from Flex 2, run a query on a MySQL database for authentication, and pass the results of the query back to the Flex client. The API consists of a simple login value object and a QueryService that calls an accompanying PHP script. The PHP&#8230; <a class=\"read-more\" href=\"https:\/\/www.ericfeminella.com\/blog\/2006\/10\/18\/as3-php-loginservice-api\/\">Continue Reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[9],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-news"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":0,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ericfeminella.com\/blog\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}