Results 1 to 8 of 8

Thread: Flashfile using amfphp brok

  1. #1
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    352
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default Flashfile using amfphp brok

    Guys, i have to break the silence

    Last week I noticed that one of my flash files I’m using wasn’t running properly anymore.

    The flash file is a animated map that loads data form a MySQL database trough a script called AMFPHP. This all used to work fine, but somehow it stop working. The data called form the database somehow doesn’t reach the flash file anymore. And thus the data cant be shown in the flash map.

    This is how the whole setup works:
    The flash file connects to a script called gateway.php (part of the amfphp script) and witch then calls the needed data from the MySQL database and returns it back to the flash file.

    Code:
    Flash file -- > gateway.php (amfphp) -- > database -- > gateway.php (amfphp) -- > Flash file.
    I’ve done some testing both local and on some different servers and noticed that all the file are working properly outside the rfh network.

    During testing I’ve created two identical flash maps. The differences is that they are connect to the AMFPHP script on different servers to get the needed data. (The amfphp script in both cases is connected to the database on alminium (rfh).

    Hosted on sodium (rfh)
    http://www.stadshartamstelveen.nl/pl...ond_16_rfh.swf
    This file is connects to the amfphp script on domain within the rfh network. (www.stadshartamstelveen.nl/amfphp/)
    Doesn’t work

    http://www.stadshartamstelveen.nl/pl...ond_16_vdm.swf
    This file is connects to the amfphp script on domain outside the rfh network. But the flash file itself is still hosted on sodium.(www.vandalfsen.net/stadshart/amfphp/)
    This one works

    Hosted on a server outside the rfh network.
    http://www.vandalfsen.net/stadshart/...ond_16_rfh.swf
    This file is connects to the amfphp script on domain within the rfh network. (www.stadshartamstelveen.nl/amfphp/)
    Doesn’t work

    http://www.vandalfsen.net/stadshart/...ond_16_vdm.swf
    This file is connects to the amfphp script on domain outside the rfh network. (www.vandalfsen.net/stadshart/amfphp/)
    This one works

    And the weird thing is, it used to work fine, it really did.

    Does anyone has any clue? Did some php settings change? Is the firewall blocking things?

  2. #2
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    Does the amfphp script log errors anywhere? It could well be a minor change in the current PHP build as fairly recently RF have moved to 5.2.2.

  3. #3
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    352
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default

    Well actually there are no errors, at least I haven’t encountered any. It just stopt returning data back to the flash file.

    Here what the output log of the two example flash files look like.

    This is the log from the file trying to connect to amfphp on sodium. It shows no data beining returend.
    Code:
    6/11 19:25:46 [INFO] logger1: Creating Service for dataService
    6/11 19:25:46 [INFO] logger1: Creating gateway connection for http://www.stadshartamstelveen.nl/amfphp/gateway.php
    6/11 19:25:46 [INFO] logger1: Successfully created Service
    6/11 19:25:46 [INFO] logger1: Invoking getList on dataService
    This is the log file from the file that connects to amfphp on a domain outside rfh.
    Code:
    6/11 19:24:9 [INFO] logger1: Creating Service for dataService
    6/11 19:24:9 [INFO] logger1: Creating gateway connection for http://www.vandalfsen.net/stadshart/amfphp/gateway.php
    6/11 19:24:9 [INFO] logger1: Successfully created Service
    6/11 19:24:9 [INFO] logger1: Invoking getList on dataService
    6/11 19:24:10 [INFO] logger1: dataService.getList() returned {store_1001: "De Bijenkorf", 
         store_1002: "TNXS shop", 
         store_1003: "Hennes & Mauritz", 
         store_1004: "Mango", 
         store_1005: "Anna van Toor", 
         store_1006: "Wonder Woman", 
         store_1008: "Claudia Sträter", 
    ect, ect.
         store_2015: "VVV Amstelveen"}
    I'll look deper in to the new php build, it might have something to do with this.

  4. #4
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    352
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default

    Found the problem

    Php 5.2.2 seems to have a bug with $HTTP_RAW_POST_DATA.
    I've fixed a work around by useing php://input.

    Thnx Nick for mentioning the php upgrade.

  5. #5
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    glad you sorted it. I think that problem has been fixed now in 5.2.3. Warren does a grand job at keeping the php up to date (very much appreciated too), so you never know, he may have that upgrade pencilled in soon enough anyway

  6. #6
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Quote Originally Posted by nick View Post
    glad you sorted it. I think that problem has been fixed now in 5.2.3. Warren does a grand job at keeping the php up to date (very much appreciated too), so you never know, he may have that upgrade pencilled in soon enough anyway
    PHP 5.2.3 upgrade should be done in the next few days
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  7. #7
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    PHP 5.2.3 has now been installed across all web servers.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  8. #8
    Join Date
    Apr 2006
    Location
    Amsterdam
    Posts
    352
    Thanks
    20
    Thanked 11 Times in 11 Posts

    Default

    Great

    Everything works like a charm.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •