By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,890 Members | 1,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,890 IT Pros & Developers. It's quick & easy.

Can PHP array can hold 200-300 values for graphs

P: n/a
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
Feb 16 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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...@gmail.com" <rahismail...@gmail.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
Feb 17 '08 #2

P: n/a
On 16 Feb, 12:16, "rahismail...@gmail.com" <rahismail...@gmail.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.
Feb 18 '08 #3

P: n/a
On Feb 18, 2:51 pm, "C. (http://symcbean.blogspot.com/)"
<colin.mckin...@gmail.comwrote:
On 16 Feb, 12:16, "rahismail...@gmail.com" <rahismail...@gmail.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
Feb 18 '08 #4

P: n/a
ra**********@gmail.com wrote:
On Feb 18, 2:51 pm, "C. (http://symcbean.blogspot.com/)"
<colin.mckin...@gmail.comwrote:
>On 16 Feb, 12:16, "rahismail...@gmail.com" <rahismail...@gmail.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.
js*******@attglobal.net
==================

Feb 18 '08 #5

P: n/a
Greetings, ra**********@gmail.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 <an*******@freemail.ru>

Feb 19 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.