User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Problem connecting to a php file with the Get objet

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem connecting to a php file with the Get objet

    Hi everyone,

    I don't know how much this is a problem with my server, my coding or with the Get object and the Flash module.

    When the app is loaded, it is supposed to connect to a php script. You can see this app right here: http://evocel.ca/test/index.html.

    The app always worked well since the beginning. But when a class of 30 students tried to log in at the same time, 9 of them succeeded and all others couldn't connect. We tried to refresh, delete temporay files, etc., without success. Now, it seems that many computers from the school cannot connect to the php file (through the Flash app). I tried something at home: I started the app at the very same time from two computers. One of the computer logged in but not the other one. Worst, this computer can't connect to the php script through the Flash app anymore. (Very strange, as I used to program my app with this computer).

    Now,

    - the Flash app connect without problem with some computers.
    - A simple Get command to the php script works with every computers. (Try it! http://evocel.ca/test/inscript_1.php?status=check. Anwser should be: "chula".)
    - The app works (connects with the script) when I try it from MMF (Run app function); it won't with either Explorer 9 or Firefox; it won't even if I change the files (php and swf) name or if I transfer the files in another directory.

    Here are the command lines in MMF:

    probl_1.jpg

    Here is the php script processing the command (relevant code only):

    $status=$_GET['status'];

    if (!empty($status)) {
    echo "chula";
    mysql_close(); //Fermeture de la session SQL
    exit;
    }

    My server technical support tells me coding is the problem. I am not so sure. Anybody has an idea of what's going on?

    Thanks,

    MB

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One important thing I forgot to mention: when the php script runs, it first connects to a MySQL database and loads an array with data from the DB. Then it goes through the coding I pasted above.

    MB

  3. #3
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,735
    Mentioned
    65 Post(s)
    Tagged
    3 Thread(s)
    It seems likely that it'd be an issue with the coding, but possibly server configuration too. Possible issues could include maximum active connections allowed, flood control or even something on the server which blocks connections which fail too many times. It's impossible to say without knowing more about your server configuration there.

    If the problem lies in your MMF application or PHP script, I can't see it from what you've shown here.

    Are these problems the same when connecting from an exe version of your MMF application too? Does it refuse to connect from an exe version after it has stopped connecting from the swf version?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here are some infos about server PHP configuration:

    Resource Limits:
    max_execution_time: 30
    max_input_time: 120
    memory_limit: 128M

    As you see, problem does not seem to lie in resource limits. Maybe in other configuration parameters?

    "Are these problems the same when connecting from an exe version of your MMF application too? Does it refuse to connect from an exe version after it has stopped connecting from the swf version?" The app can connect from MMF in "Run application" mode. But it doesn't as a .swf.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And it works as an .exe file!

    (Well, maybe I could ask the app to be installed in the school's lab computer and test it. I decided to develop in Flash because it would be more platform independant.)

  6. #6
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,735
    Mentioned
    65 Post(s)
    Tagged
    3 Thread(s)
    That's not why I asked... it's possible there's an issue with your flash policy settings. Are the PHP files and the SWF application which is failing to connect located on the same server, under the same domain (and subdomain) as each other?

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, same server, same domain, same subdomain.

  8. #8
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,735
    Mentioned
    65 Post(s)
    Tagged
    3 Thread(s)
    Hmm. Can you try putting a copy of this file:

    http://dl.dropbox.com/u/8546446/crossdomain.xml

    In the root of your server's hosting directory and see whether it makes any difference? I'm guessing not but it's worth a shot just in case.

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But, look what I've found in my Error Log folder:

    [Sat Apr 28 12:20:22 2012] [error] [client 70.53.152.105] File does not exist: /usr/home/microbe/public_html/evocel/404.shtml
    [Sat Apr 28 12:20:22 2012] [error] [client 70.53.152.105] File does not exist: /usr/home/microbe/public_html/evocel/crossdomain.xml
    [Sat Apr 28 12:07:35 2012] [error] [client 70.53.152.105] File does not exist: /usr/home/microbe/public_html/evocel/404.shtml
    [Sat Apr 28 12:07:35 2012] [error] [client 70.53.152.105] File does not exist: /usr/home/microbe/public_html/evocel/crossdomain.xml
    [Sat Apr 28 11:47:41 2012] [error] [client 86.30.140.52] File does not exist: /usr/home/microbe/public_html/evocel/404.shtml, referer: http://evocel.ca/test/evocel.swf
    [Sat Apr 28 11:47:41 2012] [error] [client 86.30.140.52] File does not exist: /usr/home/microbe/public_html/evocel/crossdomain.xml, referer: http://evocel.ca/test/evocel.swf
    [Sat Apr 28 11:39:20 2012] [error] [client 86.30.140.52] File does not exist: /usr/home/microbe/public_html/evocel/404.shtml, referer: http://evocel.ca/test/index.html
    [Sat Apr 28 11:39:20 2012] [error] [client 86.30.140.52] File does not exist: /usr/home/microbe/public_html/evocel/favicon.ico, referer: http://evocel.ca/test/index.html

    There is something about crossdomain, here, and also about the Flash file itself.

  10. #10
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,735
    Mentioned
    65 Post(s)
    Tagged
    3 Thread(s)
    OK well that seems to show that the flash file is requesting the crossdomain.xml policy file from your server (an example of which I just gave to you in the previous post). Did you put the file on there that I gave you?

    The 404.shtml errors are being generated because your host seems to be expecting a custom 404 error page, which is being raised because of the crossdomain.xml file not being located (and probably by anything else which is requesting a page/file on your server which does not exist).

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Problem opening a HTML file with a flash file
    By liliaks in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 15th January 2012, 10:26 AM
  2. sphax file folder / file objet
    By david_lannier in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 26th February 2011, 02:32 PM
  3. File size problem with regular file object??
    By TrojanWolf in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 25th April 2010, 10:39 PM
  4. Objet File Folder
    By Dominique in forum Multimedia Fusion 2 - Technical Support
    Replies: 29
    Last Post: 23rd July 2008, 10:25 PM

Posting Permissions

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