Current results of "dictionary word count" programs...

Matthew Walker mwalker at forevergreen.org
Mon Mar 13 15:43:56 MST 2006


That's odd. I'm still at the default memory limit as well, and not having a 
problem. PHP5 must be more efficient with it's memory.

Anyway, I've attached another version, that uncaps the memory limit.

On Monday 13 March 2006 15:36, Bryan Sant wrote:
> On 3/13/06, Matthew Walker <mwalker at forevergreen.org> wrote:
> > Clarification: Anything post PHP 4.1 will work. I use the superglobal
> > $_SERVER for the command line input, and those were introduced in 4.1.
>
> I get the following error when I run the program:
>
> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
> allocate 12 bytes) in /home/santbj/bin/wc.php on line 4
>
> How do I increase the amount of memory php can use?  I'm using PHP 4.4.0.
>
> -Bryan
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */

-- 
Matthew Walker
ForeverGreen
matt at thebraingarden.com
Work: (801) 655-5500
Home: (801) 491-2079

Random Quote:
Good teaching is one-fourth preparation and three-fourths good theatre.
		-- Gail Godwin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20060313/4f6a4036/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wc.php
Type: application/x-php
Size: 608 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20060313/4f6a4036/attachment-0001.bin 


More information about the PLUG mailing list