Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem from getting data from dbf file (Maximum execution time of 30

Status
Not open for further replies.

samansk

Technical User
Dec 7, 2000
44
I have old data from another department store in dbf format
(about 200000 reccords) when I retrive data from this file it error like this "Fatal error: Maximum execution time of 30 seconds exceeded " I have test this php script it work fine with 100 records . This is php code in my script
.........
........
$fp = dbase_open($dbname,0);
}
if($textfield){
$key=$textfield;
$nr = dbase_numrecords($fp);
$i=0;
for ($i=1; $i <= $nr; $i++) {

$temp = dbase_get_record($fp,$i); <==== This line make error

if (chop($temp[1]) == $key ) {
$sc=getname($temp[0]);
.........
.......

How to set the php executable time more than 30 seconds or how to solve this problem.

Thanks.
 
when I use set_time_lomit(0) function it work but have
duplicate rows in one key( for search) How to correct this problem.
 
the maximum execution time for a query can be increased by changing the value in the php.ini file (usr/local/lib/php.ini - assuming you're running linux).
 
the max time for query execution can be changed in php.ini (normally found in /usr/local/lib/php.ini)
 
Optimize the database, I have the same problem in one of my postgresql databases, when I try to do a very generic search it returns too many records and it times out on the web interface
-- Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top