AMFPHP ve Flash 8
Evet sevgili dost! Eğer “amfphp ve flash” anahtar kelimeleriyle google’ı aşındırmaya başladıysan, muhtemelen benim az önce çözdüğüm ve sevinç çığlıkları eşliğinde şu yazıyı kaleme almama sebep olan tecrübeyi yaşamışsın!
SONUNDA ÇÖZDÜM ŞÜKÜR!!
Problem:
Flash 8 kullanıyorsun ve AMFPHP 1.2.5 versiyonunu yükledin. “Hello World” örneğini, nette bulduğun tutorial’lardakinin harfi harfine aynısını uyguladın! fakat sürekli aynı hatayı veriyor!
Error opening URL “http://localhost/amfphp/gateway.php”
ya da
Error opening URL “http://localhost/flashservices/gateway.php”
Şimdi çözüme hazır mısın? Sana kafayı yedirten ya da bu yazıyı okumasaydın kafayı yedirtecek olan şeyin çözümü nedir biliyor musun? Geliyooooorr:
Tek yapman gereken,
Error opening URL “http://localhost/amfphp/gateway.php”hatasında bahsedilen link var ya? İşte ilk frame’e koyduğun ActionScript’teki bu linki “http://127.0.0.1/amfphp/gateway.php” olarak değiştireceksin hepsi bu!
Yani, Flash 8 dostumuz, “localhost” denen mefhumun zaten 127.0.0.1 ‘e denk geldiğinden bihaber!!
İşte bukadarus!
Artık bir hayır duasını eksik etmezsin değil mi? ;oP eheh
ENGLISH VERSION:
Hi! You must be surprised to be redirected to a Turkish blog while you’ve been searching for an issue about AMFPHP and Flash8. No worries, here is your medicine!Eureka!:o)
FINALLY I’VE DONE IT!!
Your problem:
You are using Flash 8 and you’ve just installed AMFPHP 1.2.5 . You have done everything correctly as you were told at several tutorials on the net. But you can never run the example “Hello World” program! You’re always getting the same error message!
Error opening URL “http://localhost/amfphp/gateway.php”
or
Error opening URL “http://localhost/flashservices/gateway.php”
Are you ready to learn the solution? Are you enough strong to realize that you’ve been getting mad because of a “very” silly, such a little thing? LOL! Here it comes:
All you have to do is, changing “localhost” to “127.0.0.1″ in the ActionScript which you put it to the first frame of your movie.
“http://localhost/amfphp/gateway.php” is supposed to be such like “http://127.0.0.1/amfphp/gateway.php”
As you may see or you had already seen, our friend Flash 8 is not able to detect “localhost” as our local web servers name. It waits us to point “127.0.0.1″ manually.
That’s all folks!
Just a “thank you” would be appriciated;oP

