[PHP] memory error
Hello. I've developed a script to use in shell to resize several images, but, when i try to run it, i keep receiving this error: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2048 bytes) how can i solve it ? PHP: 5.0.3 php.ini settings: max_execution_time = 300 max_input_time = 60 memory_limit = 8M by the way, is there any function that allows me to flush the memory ?? cheers Bruno Santos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] memory error
Bruno Santos wrote: Hello. I've developed a script to use in shell to resize several images, but, when i try to run it, i keep receiving this error: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2048 bytes) how can i solve it ? PHP: 5.0.3 php.ini settings: max_execution_time = 300 max_input_time = 60 memory_limit = 8M by the way, is there any function that allows me to flush the memory ?? Are you using imagedestroy() after you create each image? You can also use unset() for variables you don't need. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] memory error
Bruno Santos wrote: Hello. I've developed a script to use in shell to resize several images, but, when i try to run it, i keep receiving this error: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2048 bytes) how can i solve it ? If you actually NEED more than 8 Megs to handle your images, just use a different php.ini with: memory_limit = 16M or whatever you think is suitable. You can choose any php.ini file you want from the command line. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] memory error
Sometimes a memory error is just a memory error. What does your ram/swap usage look like? Thomas Holton wrote: Hi I built PHP on an ALPHA running OSF V5.1 I did the install after the make just like i did in the past. This time, however, when i do: apachectl start i get this: /usr/local/apache/bin/apachectl: 323331 Memory fault /usr/local/apache/bin/apachectl start: httpd could not be started There are no error messages being print to any apache logs. Now, I had apache running previously with PHP. I realized that imap had not been properly installed into my PHP so i went back and rebuilt PHP. Now I get this problem. This is my configuration: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-gd=/usr/local/src/gd-1.8.4 --with-png-dir=/usr/local/src/libpng-1.2.0 --with-zlib-dir=/usr/local/src/zlib --with-curl=/usr/local/lib --with-calendar --with-jpeg-dir=/usr/local/src/jpeg-6b/ --with-imap (imap was installed by putting c-client.a in /usr/lib and the appropriate header files in /usr/include) This time around I had to edit a php source file: in ext/standard/scanf.c and make the function scan_set_error_return to NOT be an inline function. Has any had this problem before? thanks! tom holton .. -- Vincent Stoessel [EMAIL PROTECTED] Java Linux Apache Mysql Php (JLAMP) Engineer (301) 362-1750 Mobile (410) 419-8588 AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] memory error
Hi I built PHP on an ALPHA running OSF V5.1 I did the install after the make just like i did in the past. This time, however, when i do: apachectl start i get this: /usr/local/apache/bin/apachectl: 323331 Memory fault /usr/local/apache/bin/apachectl start: httpd could not be started There are no error messages being print to any apache logs. Now, I had apache running previously with PHP. I realized that imap had not been properly installed into my PHP so i went back and rebuilt PHP. Now I get this problem. This is my configuration: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-gd=/usr/local/src/gd-1.8.4 --with-png-dir=/usr/local/src/libpng-1.2.0 --with-zlib-dir=/usr/local/src/zlib --with-curl=/usr/local/lib --with-calendar --with-jpeg-dir=/usr/local/src/jpeg-6b/ --with-imap (imap was installed by putting c-client.a in /usr/lib and the appropriate header files in /usr/include) This time around I had to edit a php source file: in ext/standard/scanf.c and make the function scan_set_error_return to NOT be an inline function. Has any had this problem before? thanks! tom holton .. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] memory error
Hi I built PHP on an ALPHA running OSF V5.1 I did the install after the make just like i did in the past. This time, however, when i do: apachectl start i get this: /usr/local/apache/bin/apachectl: 323331 Memory fault /usr/local/apache/bin/apachectl start: httpd could not be started There are no error messages being print to any apache logs. Now, I had apache running previously with PHP. I realized that imap had not been properly installed into my PHP so i went back and rebuilt PHP. Now I get this problem. This is my configuration: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-gd=/usr/local/src/gd-1.8.4 --with-png-dir=/usr/local/src/libpng-1.2.0 --with-zlib-dir=/usr/local/src/zlib --with-curl=/usr/local/lib --with-calendar --with-jpeg-dir=/usr/local/src/jpeg-6b/ --with-imap (imap was installed by putting c-client.a in /usr/lib and the appropriate header files in /usr/include) This time around I had to edit a php source file: in ext/standard/scanf.c and make the function scan_set_error_return to NOT be an inline function. Has any had this problem before? thanks! tom holton .. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP Memory Error
Hey all, Need some help. Two questions: 1) =Environment= PHP 4.0.5 Win2k Apache 1.3.20 MySQL ..3.24 === I created a login page which uses MySQL to verify the username and password. When I run the script (submit the html form), PHP returns this error: The instruction at 0x10091ceb referenced memory at 0x. The memory could not be read. The script is using basic SQL statments (if/else logic with SELECT), so I'm somewhat confused as to why I'm getting a memory error. Especially since PHP is able to retrieve all other information from the database. It only fails for the login script. I've double checked the db connection, table names, username/password, and other related fields. Everything seems fine. Has anyone dealt with this error before? Any clues? Please help! QUESTION 2: I reinstalled my apache server, and it's acting a little weird. For example, this url http://localhost opens a Save File Dialog Box, and ask me to save/cancel the file (instead of showing the index page). What is causing that? The DirectoryIndex is configured as DirectoryIndex index.html index.php index.cgi index.asp Any suggestions? -john On Thu, 29 Nov 2001, faeton wrote: Does anyone know that ? print $val; ? is equal ?=$val?, eh? :) Just wanted you to know :) Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP Memory Error
John, Question 1, are you using PHP as ISAPI or CGI? John Monfort [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey all, Need some help. Two questions: 1) =Environment= PHP 4.0.5 Win2k Apache 1.3.20 MySQL ..3.24 === I created a login page which uses MySQL to verify the username and password. When I run the script (submit the html form), PHP returns this error: The instruction at 0x10091ceb referenced memory at 0x. The memory could not be read. The script is using basic SQL statments (if/else logic with SELECT), so I'm somewhat confused as to why I'm getting a memory error. Especially since PHP is able to retrieve all other information from the database. It only fails for the login script. I've double checked the db connection, table names, username/password, and other related fields. Everything seems fine. Has anyone dealt with this error before? Any clues? Please help! QUESTION 2: I reinstalled my apache server, and it's acting a little weird. For example, this url http://localhost opens a Save File Dialog Box, and ask me to save/cancel the file (instead of showing the index page). What is causing that? The DirectoryIndex is configured as DirectoryIndex index.html index.php index.cgi index.asp Any suggestions? -john On Thu, 29 Nov 2001, faeton wrote: Does anyone know that ? print $val; ? is equal ?=$val?, eh? :) Just wanted you to know :) Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP Memory Error
Used to happen the same here when I was using PhpMyAdmin. On large consults, it would lock. Passing from CGI to module solved all my problems. On the manual you can see the necessary lines to do such. -- Julio Nobrega No matter where you go, this. Lallous [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... John, Question 1, are you using PHP as ISAPI or CGI? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: PHP Memory Error
I'm using it as CGI. Note: I've developed these types of pages many times(on the same system). I've never seem this error before. __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com The world is waiting, are you ready? -+___+- On Thu, 29 Nov 2001, lallous wrote: John, Question 1, are you using PHP as ISAPI or CGI? John Monfort [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey all, Need some help. Two questions: 1) =Environment= PHP 4.0.5 Win2k Apache 1.3.20 MySQL ..3.24 === I created a login page which uses MySQL to verify the username and password. When I run the script (submit the html form), PHP returns this error: The instruction at 0x10091ceb referenced memory at 0x. The memory could not be read. The script is using basic SQL statments (if/else logic with SELECT), so I'm somewhat confused as to why I'm getting a memory error. Especially since PHP is able to retrieve all other information from the database. It only fails for the login script. I've double checked the db connection, table names, username/password, and other related fields. Everything seems fine. Has anyone dealt with this error before? Any clues? Please help! QUESTION 2: I reinstalled my apache server, and it's acting a little weird. For example, this url http://localhost opens a Save File Dialog Box, and ask me to save/cancel the file (instead of showing the index page). What is causing that? The DirectoryIndex is configured as DirectoryIndex index.html index.php index.cgi index.asp Any suggestions? -john On Thu, 29 Nov 2001, faeton wrote: Does anyone know that ? print $val; ? is equal ?=$val?, eh? :) Just wanted you to know :) Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]