<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Max Titov IV @ TechSplice &#187; php</title>
	<atom:link href="http://www.blog.techsplice.com/archives/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blog.techsplice.com</link>
	<description>The most beautiful music of all is the music of what happens.</description>
	<lastBuildDate>Tue, 20 Dec 2011 18:56:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Workingn with AMF</title>
		<link>http://www.blog.techsplice.com/archives/171</link>
		<comments>http://www.blog.techsplice.com/archives/171#comments</comments>
		<pubDate>Thu, 12 Mar 2009 14:21:15 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[Everyday stuff]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[amf]]></category>
		<category><![CDATA[definition]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[setup]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/archives/171</guid>
		<description><![CDATA[I want to set up a more secure process than a current ActionScript POST/GET service querying. To do that I started looking at AMF.  Action Message Format(AMF) is a binary file format representing a serialized ActionScript object. The AMF file type is used throughout the Flash Player for data storage and data exchange. For example [...]]]></description>
			<content:encoded><![CDATA[<p>I want to set up a more secure process than a current <a href="http://en.wikipedia.org/wiki/ActionScript">ActionScript</a> POST/GET service querying.  To do that I started looking at AMF. </p>
<p>Action Message Format(AMF) is a binary file format representing a <a href="http://en.wikipedia.org/wiki/Serialization">serialized</a> ActionScript object. The AMF file type is used throughout the Flash Player for data storage and data exchange. For example in the Flash Player AMF is used in SharedObjects, RemoteObjects, LocalConnection, ByteArray, RTMP, and all RPC operations. Some of the benefits of AMF include:</p>
<ul>
<li>File Size &#8211; AMF objects are very small and are compressed using zlib.</li>
<li>Fast S<a href="http://en.wikipedia.org/wiki/Serialization">erialization</a>/ Deserialization &#8211; AMF is transformed using native C code in the Flash Player making it very fast. The AMF format was designed to serialize and deserialize quickly under low memory and slower CPU conditions making it perfect for the web. AMF data is parsed directly into objects, meaning there is no lag for interpretation or parsing of AMF making the creation of objects complete in a single pass.</li>
<li>Native Types and Custom classes supported &#8211; You can serialize any object in Flash Player with the only exception being a displayObject.you can also map serialized objects back to custom class instanced provided the custom class is in the Flash Player when the AMF object is deserialized.</li>
</ul>
<p>AMF existed in ActionScript 2 and was just called AMF as of ActionScript 3 the AMF protocol has been updated and is referred to as AMF3. For historical reasons the original AMF format is now referred to as AMF0. One of the main upgrades to AMF3 is that the object is now zlib compressed for faster transfer do to the smaller file size and the additional of data types that were released with ActionScript 3.</p>
<p>The two alternative frameworks that I am looking at are <a href="http://www.amfphp.org/">AMFPHP</a> and <a href="http://framework.zend.com/wiki/display/ZFPROP/Zend_Amf+-+Wade+Arnold">Zend_AMF</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/171/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AMFPHP + Flex 3 = Error [unable to open &#039;services-config.xml&#039;]</title>
		<link>http://www.blog.techsplice.com/archives/169</link>
		<comments>http://www.blog.techsplice.com/archives/169#comments</comments>
		<pubDate>Thu, 12 Mar 2009 04:06:56 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[amf]]></category>
		<category><![CDATA[amfphp]]></category>
		<category><![CDATA[builder]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[setup]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=169</guid>
		<description><![CDATA[While trying to configure the AMFPHP set up with the Flex 3 framework I ran in to a problem while setting up the services-config.xml. I&#8217;ve created the file in the root directory and specified in the Flex Compiler [Additional compiler arguments] the following string -locale en_US -services &#8220;services-config.xml&#8221;. As soon as I clicked OK an error [...]]]></description>
			<content:encoded><![CDATA[<p>While trying to configure the <a href="http://www.amfphp.org/">AMFPHP</a> set up with the <a href="http://www.adobe.com/products/flex/flexdownloads/index.html">Flex 3</a> framework I ran in to a problem while setting up the services-config.xml.</p>
<p>I&#8217;ve created the file in the root directory and specified in the Flex Compiler [Additional compiler arguments] the following string <em>-locale en_US -services &#8220;services-config.xml&#8221;</em>.</p>
<p>As soon as I clicked OK an error popped up with a message <em>unable to open &#8216;services-config.xml&#8217;.   </em>After trying varying things I was able to figure out that the problem was with the location of the file.  Simply placing the file at the root of the directory wasn&#8217;t the right location.  I needed to put the file in the same directory as the main MXML executable &#8211; after that the program worked as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/169/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Cyrilic integration of Flex and PHP</title>
		<link>http://www.blog.techsplice.com/archives/20</link>
		<comments>http://www.blog.techsplice.com/archives/20#comments</comments>
		<pubDate>Mon, 10 Dec 2007 02:57:23 +0000</pubDate>
		<dc:creator>maxtmax</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.blog.techsplice.com/?p=20</guid>
		<description><![CDATA[A recent project involved integration between a PHP content management tool like Joomla and Adobe Flex 2. I wrote a PHP script that parsed a MySQL database creating an XML structure that was then picked up by a HTTPService in a Flex application. The information in the database was stored in Cyrillic format, hence when [...]]]></description>
			<content:encoded><![CDATA[<p>A recent project involved integration between a <a href="http://uk.php.net/">PHP</a> content management tool like <a href="www.joomla.com">Joomla</a> and Adobe Flex 2. I wrote a <a href="http://uk.php.net/">PHP</a> script that parsed a <a href="http://www.mysql.com/">MySQL</a> database creating an <a href="http://www.xml.com/">XML</a> structure that was then picked up by a <a href="http://livedocs.adobe.com/flex/2/langref/mx/rpc/http/HTTPService.html">HTTPService</a> in a <a href="www.adobe.com/products/flex">Flex</a> application.</p>
<p>The information in the database was stored in <a href="http://en.wikipedia.org/wiki/Cyrillic_alphabet">Cyrillic</a> format, hence when ever I was loading the data in to the <a href="http://en.wikipedia.org/wiki/SWF">SWF</a> compiled file the end result was a collection of garbage data.  Setting the actuall HTML to <a href="http://en.wikipedia.org/wiki/Windows-1251">Windows-1251</a> encoding did not help the situation.</p>
<p>My following approach was to locate a native functionality within the <a href="www.adobe.com/products/flex">Flex</a> architecture to mediate the situation.  Unforchunately I wasn&#8217;t successful in aquiring sattisfying examples to solve the problem.  For that matter it became sadly obvious that I haven&#8217;t seen any flash pages using non/english alphabet [either I haven't been checking international sites that much or Adobe <a href="www.adobe.com/products/flex">Flex</a> isn't widely used overseas] .</p>
<p>My third approach was to look at the actual php code that was generating the <a href="http://www.xml.com/">XML</a> structure.  I&#8217;ve discovered a useful function <a href="http://php.net/mb_convert_encoding">mb_convert_encoding</a> that eventually solved my problems.  Using a simple snippet of code:</p>
<pre class="”prettyprint”">mb_convert_encoding($string_to_convert,'UTF-8','Windows-1251');</pre>
<p>I was able to convert the data from <a href="http://en.wikipedia.org/wiki/UTF-8">UTF-8</a> in to <a href="http://en.wikipedia.org/wiki/Windows-1251">Windows-1251</a> which allowed me to display the desired <a href="http://en.wikipedia.org/wiki/Cyrillic_alphabet">Cyrillic</a> characters.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.techsplice.com/archives/20/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.494 seconds -->

