473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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

Jul 3 '06 #1
3 1275
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
-----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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris Haynes | last post by:
Hello all, I am attempting to install Apache 2.0.47 and php4.3.3 on slackware8.1. I am pretty new to linux and this is something of a learning experience and so I was anticipating a few problems...
1
by: porneL | last post by:
I've had setup on WinXP: Apache1.3 with PHP4 module and PHP5 installedas CGI for one vhost. This worked fine, till I installed Zend Studio 4 beta. I'm trying to make Zend Server use my...
0
by: Hal Vaughan | last post by:
I am using OpenOffice files in my app. They're stored in .zip format, so the zip format is much more important, in this case, than that they're OOo files (other than that the extension is .sxw and...
0
by: _andrea.l | last post by:
I'd like to use php5 but at my work we use PHP4. How can use both togheter? I work whith Linux Fedora 4 then I have PHP5 installed so how can install PHP4 and use PHP5 for my experiment and PHP4...
7
by: vansky | last post by:
Dear all, im porting a WIN APP to LINUX, and face some problems that r hard for me to solve, could u dear guys give me some hands? i'd like to reimplement the following funcs or replace them...
5
by: sinister | last post by:
I'm starting a database/web interface project, using Linux and postgresql. I've programmed in PHP4 in the past, and for this new project am unsure whether to use PHP4 or PHP5. My main concerns...
5
by: danish | last post by:
I download the oci-1.2.2.tgz file and generated the oci8.so file. After adding the extension=oci8.so in php.ini I get the error unable to load dynamic library /usr/lib/php4/oci8.so
12
by: Drazen Gemic | last post by:
How long will PHP4 be supported ? When is PHP4 end of life scheduled ? DG
8
by: FFMG | last post by:
Hi, I am slowly moving my code to php5. But I would like to make it backward compatible in case something bad happens, (and to make sure I understand what the changes are). The way the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.