<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>eocm</title>
    <link rel="alternate" type="text/html" href="http://europeanoperaclubmixture.com/blog/" />
    <link rel="self" type="application/atom+xml" href="http://europeanoperaclubmixture.com/blog/atom.xml" />
   <id>tag:europeanoperaclubmixture.com,2005:/blog//6</id>
    <link rel="service.post" type="application/atom+xml" href="http://europeanoperaclubmixture.com/mt/mt-atom.cgi/weblog/blog_id=6" title="eocm" />
    <updated>2005-10-09T01:19:49Z</updated>
    
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type  3.2-ja-b1</generator>
 
<entry>
    <title>Flash Remoting Componentのインストール</title>
    <link rel="alternate" type="text/html" href="http://europeanoperaclubmixture.com/blog/2005/10/flash_remoting_component.php" />
    <link rel="service.edit" type="application/atom+xml" href="http://europeanoperaclubmixture.com/mt/mt-atom.cgi/weblog/blog_id=6/entry_id=23" title="Flash Remoting Componentのインストール" />
    <id>tag:europeanoperaclubmixture.com,2005:/blog//6.23</id>
    
    <published>2005-10-09T01:08:08Z</published>
    <updated>2005-10-09T01:19:49Z</updated>
    
    <summary>phpobjectの挙動が気にくわなかった為、1.0になったことだし、AMFPH...</summary>
    <author>
        <name>ieiri</name>
        
    </author>
    
    <content type="html" xml:lang="ja" xml:base="http://europeanoperaclubmixture.com/blog/">
        <![CDATA[<p>phpobjectの挙動が気にくわなかった為、1.0になったことだし、AMFPHPを入れてみようかと。</p>

<p>が、<a href="http://www.amfphp.org" target="_blank">amfphp.org</a>が鯖落ちして数日間ダウンロード出来ず。sourceforgeも繋がんないしどうなってんだ一体。<br />
結局、http://voxel.dl.sourceforge.net/sourceforge/amfphp/amfphp-ms3-20050925.zipな感じでミラーから落として来た。</p>

<p>そんで、MacromediaのサイトからAS2.0用をダウンロードしてインストール。はまったのは、ソースも入れなきゃいけないってこと。ここではまった・・<br />
ソースを落として来て、Application/Macromedia Flash MX 2004/First Run/Classes/mx　にぶっこんだ後は、<br />
import mx.remoting.*;<br />
import mx.rpc.*;<br />
でいけますね。</p>

<p>AMFPHPのインストールについては次回。</p>]]>
        
    </content>
</entry>
<entry>
    <title>PHPObject難航パート3</title>
    <link rel="alternate" type="text/html" href="http://europeanoperaclubmixture.com/blog/2005/09/phpobject3.php" />
    <link rel="service.edit" type="application/atom+xml" href="http://europeanoperaclubmixture.com/mt/mt-atom.cgi/weblog/blog_id=6/entry_id=22" title="PHPObject難航パート3" />
    <id>tag:europeanoperaclubmixture.com,2005:/blog//6.22</id>
    
    <published>2005-09-26T08:29:00Z</published>
    <updated>2005-09-26T08:34:48Z</updated>
    
    <summary>クラスの中でこんな感じでDB接続を作るじゃないすか。 $this-&gt;dbh = ...</summary>
    <author>
        <name>ieiri</name>
        
    </author>
    
    <content type="html" xml:lang="ja" xml:base="http://europeanoperaclubmixture.com/blog/">
        <![CDATA[<p>クラスの中でこんな感じでDB接続を作るじゃないすか。</p>

<p>$this->dbh = new PDO($this->ds, $this->username, $this->password);<br />
$this->dbh->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_EXCEPTION);<br />
$this->dbh->exec("set names utf8");</p>

<p>これをグローバルで使いまわそうとするとダメ。<br />
単独で使う分には普通に動くんだけど、、結局、関数ごとに毎回接続を作るようにしたら動きました。よくわかんないけど動いたからヨシとしよう。</p>]]>
        
    </content>
</entry>
<entry>
    <title>PHPObject難航パート２</title>
    <link rel="alternate" type="text/html" href="http://europeanoperaclubmixture.com/blog/2005/09/phpobject.php" />
    <link rel="service.edit" type="application/atom+xml" href="http://europeanoperaclubmixture.com/mt/mt-atom.cgi/weblog/blog_id=6/entry_id=21" title="PHPObject難航パート２" />
    <id>tag:europeanoperaclubmixture.com,2005:/blog//6.21</id>
    
    <published>2005-09-26T08:15:00Z</published>
    <updated>2005-09-26T08:23:44Z</updated>
    
    <summary>これにもはまった。 PHPObjectで呼ぶクラスファイルの中で、include...</summary>
    <author>
        <name>ieiri</name>
        
    </author>
    
    <content type="html" xml:lang="ja" xml:base="http://europeanoperaclubmixture.com/blog/">
        <![CDATA[<p>これにもはまった。<br />
PHPObjectで呼ぶクラスファイルの中で、includeとか使う場合はそのクラスファイルからの相対パスじゃダメで、Gateway.phpからの相対か、絶対パスで書けばオーケー。</p>]]>
        
    </content>
</entry>
<entry>
    <title>PHPObject難航パート1</title>
    <link rel="alternate" type="text/html" href="http://europeanoperaclubmixture.com/blog/2005/09/post.php" />
    <link rel="service.edit" type="application/atom+xml" href="http://europeanoperaclubmixture.com/mt/mt-atom.cgi/weblog/blog_id=6/entry_id=20" title="PHPObject難航パート1" />
    <id>tag:europeanoperaclubmixture.com,2005:/blog//6.20</id>
    
    <published>2005-09-26T08:06:59Z</published>
    <updated>2005-09-26T08:24:09Z</updated>
    
    <summary>PHPObjectを使ってみてるんだけど、意図した通りに動いてくれない。 myF...</summary>
    <author>
        <name>ieiri</name>
        
    </author>
    
    <content type="html" xml:lang="ja" xml:base="http://europeanoperaclubmixture.com/blog/">
        <![CDATA[<p>PHPObjectを使ってみてるんだけど、意図した通りに動いてくれない。</p>

<p>myFoo.onInit = function() { trace("init ok"); } <br />
myFoo.write_onResult = function() { trace("write ok"); }<br />
myFoo.read_onResult = function() { trace("read ok"); }</p>

<p>myFoo.write();<br />
myFoo.read();</p>

<p>これで"init ok" "write ok" "read ok"と表示して欲しいところなんだけど、"init ok" "write ok"しか表示されない。<br />
しかも順序が逆になったりする。どうなんすか。</p>

<p>PHP5.1使ってるからかなとかいろいろ疑ってみたんだけど、結局、delayExecuteとexecuteを使うか、write_onResultの中でreadを呼ぶことで解決。そういうもんなのかな。</p>

<p>とりあえずこれで前に進む、、</p>]]>
        
    </content>
</entry>

</feed> 

