Reply to Re: php4 on WinXP vs. Linux -- memory problems

Your name:

Reply:


Posted by Ivαn Sαnchez Ortega on 07/04/06 12:05

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

cmills28@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-----

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация