Is it OK to run an array with 22k strings in a PHP code on a shared web host?
Posted
by
kuchikoo
on Stack Overflow
See other posts from Stack Overflow
or by kuchikoo
Published on 2012-09-29T15:34:27Z
Indexed on
2012/09/29
15:37 UTC
Read the original article
Hit count: 163
I'm new to writing code so kindly bear with me if this is a very noobish question. A couple of days back I asked a question about a PHP code that matches the the query entered by users on my website to an array stored within the PHP code and displays the matched queries. Here is the code I'm talking about
Now I've ended up with a rather large list (over 22k) of strings that have to be stored in the array. Is it ok to run it like this? I'm hosting the site on a shared hostgator package, will this cause my site to crash? I don't know too much about DBs but can I somehow store this on MySQL instead of having it in the code?
© Stack Overflow or respective owner