Hello!

I'm new to this forum and I need some help with the way my server executes this php script called stockquote.php which retrieves stock market data and parses it so it is displayed in a flash swf file. The PHP script works technically speaking - however on my server it runs about 60-300 times slower (2-5+ minutes to get and parse financial data) than on the server of the webdevelopers from whom I bought the script (2 seconds to update financial data). The scripts and swf are exactly the same, except for the fact that on one server, the script has fetched and parsed the data in 2 seconds vs. 2-5+ minutes or more on the other server - unfortunately being my justhost.com server.

Take a look:
the flash swf file I made as it appears on the developers server:
http://www.flashextension.net/support/marketoverview.html

And the same file using the same php script on my server:
http://bga-aeroweb.com/SWF_test.html

My phpinfo.php: (I have increased memory limits and caching levels as well as setting buffering in the "on" mode.) http://bga-aeroweb.com/phpinfo.php

Is there anything in my php settings that would cause this extreme slowness in the php execution on my server????

Why would my server 60-300 times slower at executing the script and feed data to the swf??????????? I just don't get it. I have been searching the web all day without being able to solve my problem.

As I see it, it is a server-side problem. The files are exactly the same - but execution is instant on one server and horribly slow on the other. Why is that?

Any help will be greatly appreciated. Thank you!

Best, Kasper

    I would tend to agree that it is a server side problem, but it can be for any number of reasons. Here are a few:

    1) you are using a shared virtual server with many other web sites, which means you are all sharing the same bandwidth.
    2) The server you are on has a slower connection to the internet than your developer's server has
    3) The server you are on has less resources (memory, cpu) available to you than your developer does.
    4) The server you are on doen't have as efficient a caching system as your developer's server

    You may not be able to overcome your limitations, but there may be ways to compensate. I believe you can create a local PHP.INI for yourself that allows you to adjust conditions to be more favorable to you, like increased memory space. I'm just a simple coder, but this might be worth looking into.

      Is flash fetching this data or is your server fetching the data?

        Write a Reply...