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 <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] Work: (801) 655-5500 Home: (801) 491-2079 Random Quote: Good teaching is one-fourth preparation and three-fourths good theatre. -- Gail Godwin
pgpdLe6QELFJ1.pgp
Description: PGP signature
wc.php
Description: application/php
/* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
