Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 2nd, 2006, 8:20 AM   #1
guess
Programmer
 
Join Date: Feb 2006
Posts: 40
Rep Power: 0 guess is on a distinguished road
CGI application error...

Quote:
The specified CGI application exceeded the allowed time for processing. The server has deleted the process.
Can anybody solve this error??
guess is offline   Reply With Quote
Old Mar 2nd, 2006, 8:27 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Mar 2nd, 2006, 8:39 AM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
code?
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Mar 2nd, 2006, 8:40 AM   #4
guess
Programmer
 
Join Date: Feb 2006
Posts: 40
Rep Power: 0 guess is on a distinguished road
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.
guess is offline   Reply With Quote
Old Mar 2nd, 2006, 9:09 AM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Mar 2nd, 2006, 10:11 AM   #6
guess
Programmer
 
Join Date: Feb 2006
Posts: 40
Rep Power: 0 guess is on a distinguished road
Quote:
One doesn't pluck them from one's nether regions. Rather, one describes the problem, the goal, and works out a solution.
I dont understand what u meant here??
guess is offline   Reply With Quote
Old Mar 2nd, 2006, 10:22 AM   #7
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote
Old Mar 3rd, 2006, 1:10 AM   #8
guess
Programmer
 
Join Date: Feb 2006
Posts: 40
Rep Power: 0 guess is on a distinguished road
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...
guess is offline   Reply With Quote
Old Mar 3rd, 2006, 7:23 AM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Mar 3rd, 2006, 7:35 AM   #10
guess
Programmer
 
Join Date: Feb 2006
Posts: 40
Rep Power: 0 guess is on a distinguished road
Quote:
Originally Posted by DaWei
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.
Well.As a man whose mother tounge is not English, I couldnt understand what u meant although I read it 3 times.Can u use a little bit more easy language.
guess is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:08 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC