![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Programmer
Join Date: Feb 2006
Posts: 40
Rep Power: 0
![]() |
CGI application error...
Quote:
|
|
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Most likely an infinite loop.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
code?
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Feb 2006
Posts: 40
Rep Power: 0
![]() |
IT is not infinite.Yes there is a loop u are right.But this loop is parsing a text file and loading it into a database.However, it is an 12MB of a text file and it has too many lines.I am definitely sure the loop is not infinite because when I work with smaller files,it works fine.
Do I have to make adjustments in php.ini?? I wanted u to know I made an adjustment in "max_execution_time". I set it to 10000 seconds to make sure. |
|
|
|
|
|
#5 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You're operating outside the normal boundaries of the paradigm. There are probably a half-dozen good solutions. One doesn't pluck them from one's nether regions. Rather, one describes the problem, the goal, and works out a solution.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#6 | |
|
Programmer
Join Date: Feb 2006
Posts: 40
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
|
|
#7 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
He means describe what exactly you wish to do, and then perhaps someone will come up with a better solution. It's not likely that you absolutely need to parse 12MB of user submitted data instantaneously. There may be any number of solutions, but they depend on what you plan to achieve with your software, and what resources you have at your disposal.
One possible solution could be to pass the uploaded user data to a daemon process that runs in the background. But without extra data, I couldn't say for sure. |
|
|
|
|
|
#8 |
|
Programmer
Join Date: Feb 2006
Posts: 40
Rep Power: 0
![]() |
well ok.I hope this time I make myself more clear.Im using macromedia dreamweaver and trying to write a php,html and javascript simultaneously.there is a log file which keeps spam information.I am given a job to create a database,parse the whole 12MB file and then put them into the appropriate locations in the database.and then I have another script that searches this database by dynamic queries.But this CGI problem occurs when Im trying to parse and insert into the database.There is not an infinite loop.And Im using localhost as server and Im using IIS,not apache.I hope this time it is ok.Otherwise Im gonna send the code and let u show me in which way a person can explain better...
|
|
|
|
|
|
#9 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
It appears that you have two tasks: build a database from existing information, and query that database. The first is not intrinsically web-related. There's no reason to do it in such a way that response timeouts enter the picture. It's fairly likely, even, that the data is in some form amenable to an import operation. At any rate, you get that done as a system operation, then design and write your web-related spam-query application.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#10 | |
|
Programmer
Join Date: Feb 2006
Posts: 40
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|