Re: Question about array limits & practicallity
| From: | Robert Cummings | Date: | Thu, 22 Jan 2004 04:16:43 +0000 |
| Subject: | Re: Question about array limits & practicallity | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175391@lists.php.net to get a copy of this message | ||
On Wed, 2004-01-21 at 23:07, Joe Harman wrote:
> I am curious how much data an array can hold.. And what the pros and
> cons are.
How much memory have you allowed PHP to consume?
> Example.. I am making a testing system that will give a student a 102
> question test...
>
> The test would be generated so that each one is different... So would it
> be practical to load all 102 questions and their options into an array
> and store that array into a session?
You could. 102 questions probably isn't very large.
> Also can I store those arrays as a blob in MySQL?
You could, but you'd be better off storing them in normalized tables
IMHO.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'