473,386 Members | 1,733 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,386 software developers and data experts.

Long script strange behaviour

Hello,
I am trying to export/import about 50.000 records in a csv file which a
user can upload or downlaod from the browser.
The problem is once I hit export Firefox comes with a dowload
myscript.php window and IE just page cannot be found.
It doesn't happen with less records.
I tryied to google the problem but it doesn't seem to get me anywhere.
Also I have memory problem because I create huge associative arrays
that keep all those data temporary.
I suppose that PHP is not the right language to do this kind of data
manipulation or that I am missing something. I've seen though other
sites doing that kind of imports and exports.

Has anyone ever met that before? Firefox download window / IE page
cannot be found when you run a script ?

Thanks.. .I'll appreciate any suggestions.

Oct 30 '06 #1
2 1220


On Oct 30, 8:13 pm, "Aggelos" <djje...@gmail.comwrote:
Hello,
I am trying to export/import about 50.000 records in a csv file which a
user can upload or downlaod from the browser.
The problem is once I hit export Firefox comes with a dowload
myscript.php window and IE just page cannot be found.
It doesn't happen with less records.
I tryied to google the problem but it doesn't seem to get me anywhere.
Also I have memory problem because I create huge associative arrays
that keep all those data temporary.
I suppose that PHP is not the right language to do this kind of data
manipulation or that I am missing something. I've seen though other
sites doing that kind of imports and exports.

Has anyone ever met that before? Firefox download window / IE page
cannot be found when you run a script ?

Thanks.. .I'll appreciate any suggestions.
You can use something like "LOAD DATA INFILE" statement (in case if you
use the MySQL database) that is a fastest way of importing such big
amounts of data. Although, I think this issue is not related to
database usage... You may try to trace the HTTP requests between client
and server and check what happens.

Sincerely,
Alexander
http://www.alexatnet.com/ - PHP/Zend Framework and Ajax blog

Oct 30 '06 #2
Thanks for the reply. I allready use LOAD DATA INFILE to import... and
I do that fine.
The problem I found by looking my running processes using the command
"top" is that MySQL was busy for 3hours running select statements
because in my foreach loop of 40.000 records array I had only IDs and I
needed to get foreach ID the full details from another table.
So the solution I found is to make one big select and then have all the
Data I want stored in an array.

The problem is that I still get that Open/Save Dialog box on firefox
and I had that a few other times in other scripts as well.
Maybe is the server configuration, but then again I had that in both a
RAQ and a BSD box.

I still need someone with previous experience on what I am getting in
order to find an answer.
Both my import and export scripts work fine with 1000 records. The
problem starts when I increase the size of data.

Thanks again.

Oct 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

88
by: Matt | last post by:
Hi folks. Can you help with some questions? I gather that some types supported by g++ are nonstandard but have been proposed as standards. Are the long long and unsigned long long types still...
2
by: Paul Drummond | last post by:
Hi all, I am developing software for Linux Redhat9 and I have noticed some very strange behaviour when throwing exceptions within a shared library. All our exceptions are derived from...
3
by: Sebastian C. | last post by:
Hello everybody Since I upgraded my Office XP Professional to SP3 I got strange behaviour. Pieces of code which works for 3 years now are suddenly stop to work properly. I have Office XP...
9
by: luke | last post by:
Hi everybody, please, can someone explain me this behaviour. I have the following piece of code: long long ll; unsigned int i = 2; ll = -1 * i; printf("%lld\n", ll);
1
by: Keith Sauvant | last post by:
Hi! Strange problem on a lamp installation: A script runs longer than 5 minutes and sends no output to the browser until it is finished. When called at customer site it gets stopped after...
11
by: Martin Joergensen | last post by:
Hi, I've encountered a really, *really*, REALLY strange error :-) I have a for-loop and after 8 runs I get strange results...... I mean: A really strange result.... I'm calculating...
0
by: java | last post by:
Hi there! After I overcame some short_open_tag (thanks, Rik!) I encounter another strange php-behaviour. The script I just got to work on the windows-commandline obviously does as php.ini tells...
73
by: Yevgen Muntyan | last post by:
Hey, I was reading C99 Rationale, and it has the following two QUIET CHANGE paragraphs: 6.5.3.4: "With the introduction of the long long and extended integer types, the sizeof operator may...
20
by: Pilcrow | last post by:
This behavior seems very strange to me, but I imagine that someone will be able to 'explain' it in terms of the famous C standard. -------------------- code -----------------------------------...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.