php4 on WinXP vs. Linux -- memory problems

This is a discussion on php4 on WinXP vs. Linux -- memory problems within the PHP Language forums, part of the PHP Programming Forums category; Hi. I'm developing a php 4.3.10 script, extracting data from webpages. Using string functions (strpos, substr) alot, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-03-2006
cmills28@yahoo.com
 
Posts: n/a
Default php4 on WinXP vs. Linux -- memory problems

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

Reply With Quote
  #2 (permalink)  
Old 07-03-2006
cmills28@yahoo.com
 
Posts: n/a
Default Re: php4 on WinXP vs. Linux -- memory problems

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

Reply With Quote
  #3 (permalink)  
Old 07-04-2006
Iván Sánchez Ortega
 
Posts: n/a
Default Re: php4 on WinXP vs. Linux -- memory problems

-----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-----
Reply With Quote
  #4 (permalink)  
Old 07-05-2006
Karel de Vos
 
Posts: n/a
Default Re: php4 on WinXP vs. Linux -- memory problems

Is this memory exhausted error from PHP or from the MySQL server.

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0