473,320 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
Feb 16 '08 #1
5 1633
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Abby | last post by:
From my code below, it will open a file specified in argv, then read line by line and store each line in an array call IPTemp. After reading until EOF, it will return array IPTemp to main, which...
3
by: some one | last post by:
Which of the following definition is more efficient? struct TestData { int a; int b; int var1; int var2; int var3; int var4; int var5; int var6;
4
by: Roozbeh GHolizadeh | last post by:
Hi there... i think it is a very common problem but i dont know why i didnt find anything good for me on internet... i want to simply rotate an array with 90,180,270 degrees.... here is how...
1
by: john | last post by:
Relatively new to C coding, so any help would greatly be appreciated. I'm having problems try to return my string array from my parsing function. When I do a printf I am getting the correct value...
11
by: truckaxle | last post by:
I am trying to pass a slice from a larger 2-dimensional array to a function that will work on a smaller region of the array space. The code below is a distillation of what I am trying to...
3
by: yehaimanish | last post by:
I am developing an application by which to parse the content from the access_log and insert it into the database. Since each row is an different entry, I am using file() to get the contents into an...
6
by: Summercoolness | last post by:
i used C too much and haven't used Python for a while... like in C, if we want an array of array of float, we use float a; now in Python, seems like we have to do something like a = ] *...
5
by: Andreas Schmitt | last post by:
Hi, I recently worked on an open source project and tried to make on of the arrays they are using dynamically allocated to get rid of the max size. I used the realloc instead of the usual C++...
26
by: mike-yue | last post by:
The topic comes from a question: Would you rather wait for the results of a quicksort, a linear search, or a bubble sort on a 200000 element array? 1Quicksort 2Linear Search 3Bubble Sort ...
24
by: DomoChan | last post by:
the code below will compile in visual c++ 2003, but im not sure its valid. unsigned char myString = ""; after this line executes, all the bytes within myString are indeed set to '0's' but is...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.