By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

php4 on WinXP vs. Linux -- memory problems

P: n/a
Hi.

I'm developing a php 4.3.10 script, extracting data from webpages.
Using string functions (strpos, substr) alot, some arrays (both static
& dynamic) also data is going to a MySQL 5 DB. Am using
mysql_free_result() function to free memory, but I'm still having
memory problems -- keep getting the memory exhausted error. I'm
developing this on Windows XP, but the live site is on Linux. Would
this problem be a glitch in my code, in php itself, or a server
problem??

any thoughts/suggestions?

Thanks in advance.
Chris

Jul 3 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
PS.

I forgot to mention that the memory problems are in the Linux server.
I haven't run my script fully on WinXP yet so I don't know if I'll get
the same error.

Chris

Jul 3 '06 #2

P: n/a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

cm******@yahoo.com wrote:
I'm developing a php 4.3.10 script, extracting data from webpages.
Using string functions (strpos, substr) alot, some arrays (both static
& dynamic) also data is going to a MySQL 5 DB. Am using
mysql_free_result() function to free memory, but I'm still having
memory problems -- keep getting the memory exhausted error. I'm
developing this on Windows XP, but the live site is on Linux. Would
this problem be a glitch in my code, in php itself, or a server
problem??

any thoughts/suggestions?
How many rows are there (in comparison) in the development and production
databaes? Are you loading all that data into memory anywhere in your code?
Are you unset()ting the variables holding the result data?

- --
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

"People demand freedom of speech to make up for the freedom of thought which
they avoid."
- Soren Aabye Kierkegaard (1813-1855)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEqlmW3jcQ2mg3Pc8RAgjuAJ4vCk2KW/EWaRuG7GMy3lWXdeVBIQCeK4Qb
hjHizik9aCytu4m9JDvwNsI=
=xtsI
-----END PGP SIGNATURE-----
Jul 4 '06 #3

P: n/a
Is this memory exhausted error from PHP or from the MySQL server.

cm******@yahoo.com wrote:
Hi.

I'm developing a php 4.3.10 script, extracting data from webpages.
Using string functions (strpos, substr) alot, some arrays (both static
& dynamic) also data is going to a MySQL 5 DB. Am using
mysql_free_result() function to free memory, but I'm still having
memory problems -- keep getting the memory exhausted error. I'm
developing this on Windows XP, but the live site is on Linux. Would
this problem be a glitch in my code, in php itself, or a server
problem??

any thoughts/suggestions?

Thanks in advance.
Chris
Jul 5 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.