Can PHP array can hold 200-300 values for graphs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rahismailbox@gmail.com

    Can PHP array can hold 200-300 values for graphs

    Hi,
    I have to make graph from php array of around 300 values. I am using
    PHPlots for making them.
    And i have to use the values of array around 4-5 scripts.
    So is it advisable to make that array a global variable or converting
    data to a XML file and loading the values on need.
    Regards
  • petersprc

    #2
    Re: Can PHP array can hold 200-300 values for graphs

    An array can hold many thousands of elements. It would only be limited
    by the available memory (PHP's memory_limit setting, your OS process
    resource limits, physical RAM...).

    On Feb 16, 7:16 am, "rahismail...@g mail.com" <rahismail...@g mail.com>
    wrote:
    Hi,
    I have to make graph from php array of around 300 values. I am using
    PHPlots for making them.
    And i have to use the values of array around 4-5 scripts.
    So is it advisable to make that array a global variable or converting
    data to a XML file and loading the values on need.
    Regards

    Comment

    • C. (http://symcbean.blogspot.com/)

      #3
      Re: Can PHP array can hold 200-300 values for graphs

      On 16 Feb, 12:16, "rahismail...@g mail.com" <rahismail...@g mail.com>
      wrote:
      Hi,
      I have to make graph from php array of around 300 values. I am using
      PHPlots for making them.
      And i have to use the values of array around 4-5 scripts.
      So is it advisable to make that array a global variable or converting
      data to a XML file and loading the values on need.
      Regards
      I was going to say that arrays would be ideal in this kind of scale
      but if you're in the region of 4 digits plus, you should think about a
      different way to handle the data. But then I saw you're thinking about
      using XML instead. XML is not a way to solve scaling/performance
      problems at this level.

      C.

      Comment

      • rahismailbox@gmail.com

        #4
        Re: Can PHP array can hold 200-300 values for graphs

        On Feb 18, 2:51 pm, "C. (http://symcbean.blogsp ot.com/)"
        <colin.mckin... @gmail.comwrote :
        On 16 Feb, 12:16, "rahismail...@g mail.com" <rahismail...@g mail.com>
        wrote:
        >
        Hi,
        I have to make graph from php array of around 300 values. I am using
        PHPlots for making them.
        And i have to use the values of array around 4-5 scripts.
        So is it advisable to make that array a global variable or converting
        data to a XML file and loading the values on need.
        Regards
        >
        I was going to say that arrays would be ideal in this kind of scale
        but if you're in the region of 4 digits plus, you should think about a
        different way to handle the data. But then I saw you're thinking about
        using XML instead. XML is not a way to solve scaling/performance
        problems at this level.
        >
        C.
        I m not in region of 4 digits.
        I m needed only of 3 digits but it is a 2D array.
        Anyways as i needed it across many scripts so i have used it as a Xml
        file.
        Thanx for your reply
        Regards
        Rahi

        Comment

        • Jerry Stuckle

          #5
          Re: Can PHP array can hold 200-300 values for graphs

          rahismailbox@gm ail.com wrote:
          On Feb 18, 2:51 pm, "C. (http://symcbean.blogsp ot.com/)"
          <colin.mckin... @gmail.comwrote :
          >On 16 Feb, 12:16, "rahismail...@g mail.com" <rahismail...@g mail.com>
          >wrote:
          >>
          >>Hi,
          >>I have to make graph from php array of around 300 values. I am using
          >>PHPlots for making them.
          >>And i have to use the values of array around 4-5 scripts.
          >>So is it advisable to make that array a global variable or converting
          >>data to a XML file and loading the values on need.
          >>Regards
          >I was going to say that arrays would be ideal in this kind of scale
          >but if you're in the region of 4 digits plus, you should think about a
          >different way to handle the data. But then I saw you're thinking about
          >using XML instead. XML is not a way to solve scaling/performance
          >problems at this level.
          >>
          >C.
          >
          I m not in region of 4 digits.
          I m needed only of 3 digits but it is a 2D array.
          Anyways as i needed it across many scripts so i have used it as a Xml
          file.
          Thanx for your reply
          Regards
          Rahi
          >
          Which is a very inefficient way to do it...

          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstucklex@attgl obal.net
          =============== ===

          Comment

          • AnrDaemon

            #6
            Re: Can PHP array can hold 200-300 values for graphs

            Greetings, rahismailbox@gm ail.com.
            In reply to Your message dated Saturday, February 16, 2008, 15:16:22,
            I have to make graph from php array of around 300 values. I am using
            PHPlots for making them.
            And i have to use the values of array around 4-5 scripts.
            So is it advisable to make that array a global variable or converting
            data to a XML file and loading the values on need.
            I have a script dealing with about 2 millions of 2d points in one array.
            So.. I guess it can hold a 1/10 part of that for You.


            --
            Sincerely Yours, AnrDaemon <anrdaemon@free mail.ru>

            Comment

            Working...