<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1041960" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1041960</link>
    <description></description>
    <language>en</language>
          <item>
    <title>I know what you where all</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/array-max-size#comment-1233986</link>
    <description> &lt;p&gt;I know what you where all thinking... there was a reason why I couldn&#039;t..&lt;/p&gt;
&lt;p&gt;I managed to convince my client to use a host that provides a &lt;strong&gt;database&lt;/strong&gt;.&lt;br /&gt;
So yes, now the arrays are of course scrapped and replaced by mysql.&lt;/p&gt;
&lt;p&gt;I think she is already convinced the move was worthwhile from the ACP I have built now there is a DB.&lt;/p&gt;
 </description>
     <pubDate>Mon, 29 Sep 2008 13:07:49 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1233986 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Not sure why you thought it</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/array-max-size#comment-1233827</link>
    <description> &lt;p&gt;Not sure why you thought it was user info??&lt;br /&gt;
Arrays are used in many circumstances, not just user data.&lt;/p&gt;
&lt;p&gt;It&#039;s for a musical website. The site has a page which displays all the musicians albums and next to each album is a link for lyrics and samples for each album.&lt;br /&gt;
When a link to lyrics or samples is clicked, it goes to the same page, but with additional GET info to determine if user selected mp3 samples or lyrics.&lt;br /&gt;
(I use the same page as there isn&#039;t much data required in the displaying of all albums.)&lt;/p&gt;
&lt;p&gt;In the GET is also which album&#039;s lyrics the user wanted to view.&lt;br /&gt;
Then in a separate file I have all the lyrics for all the albums, KEY is song name and VALUE is the lyrics. &lt;/p&gt;
&lt;p&gt;As the file is queried after the GET stuff, a var is already set to detrmine the album to user wants, so the separate file uses that var to know which array data to get for which album.&lt;/p&gt;
&lt;p&gt;I asked about storage for arrays as I could easily have had all the data for lyrics for each song for each album within the same file, but it&#039;s al ot of data.&lt;br /&gt;
But mainly because adding an extra set of song lyrics to the separate array file is easier when the artist adds a new album.&lt;br /&gt;
And also, is easier to do within the ACP I created, to make it easy for them to do themselves.&lt;/p&gt;
&lt;p&gt;The displaying of lyrics is simply a foreach on the array it gets as per the GET data.&lt;/p&gt;
&lt;p&gt;(you did ask &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/grin.png&quot; title=&quot;Laugh&quot; alt=&quot;Laugh&quot; class=&quot;smiley-content&quot; /&gt;)&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Sep 2008 16:23:57 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1233827 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Why would you be storing all</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/array-max-size#comment-1233825</link>
    <description> &lt;p&gt;Why would you be storing all of your user info in an array?&lt;/p&gt;
&lt;p&gt;Surely it would be better to start using a database if you have lots of users?&lt;/p&gt;
&lt;p&gt;just out of interest like...&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Sep 2008 15:53:17 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1233825 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>If you have several thousand</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/array-max-size#comment-1233688</link>
    <description> &lt;p&gt;If you have several thousand users on your server at the same time, a few MB of memory for your $_SESSION data will be the least of your concerns. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 21 Sep 2008 16:58:09 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1233688 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Ok thanks.
I got the size</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/array-max-size#comment-1233687</link>
    <description> &lt;p&gt;Ok thanks.&lt;/p&gt;
&lt;p&gt;I got the size thing, but with a few thousand users it could get to be a few MB. Still not loads with todays GB, but anything is something.&lt;/p&gt;
&lt;p&gt;&quot;anything is something&quot;&lt;br /&gt;
That&#039;s profound that is Greg!&lt;/p&gt;
 </description>
     <pubDate>Sun, 21 Sep 2008 16:43:55 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1233687 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>2000 words is not as big as</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/array-max-size#comment-1233683</link>
    <description> &lt;p&gt;2000 words is not as big as you think.  An average of 5 characters per word would be 10,000 bytes or less than 10k of memory.  Not enough to worry about.&lt;/p&gt;
&lt;p&gt;You will very rarely ever hit a cap with storing text in a variable.  You will only ever really have to worry about memory limits when doing some image manipulation or something.&lt;/p&gt;
 </description>
     <pubDate>Sun, 21 Sep 2008 15:40:11 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1233683 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
