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

Fatal error: Script timing out after 60 seconds.

Expand|Select|Wrap|Line Numbers
  1. $ffile=file(".\\110607csv.csv");
  2. $ffopen = fopen (".\\110607csv.csv","r");
  3. echo count($ffile)."<br>\n";
  4.  
  5. while ($data = fgetcsv ($ffopen,1000,",")) 
  6. {
  7.    for($i=0; $i<sizeof($ffile); $i++) 
  8. { echo $i."<br>\n";
  9.       $line = trim($ffile[$i]); 
  10.       $arr = explode(",", $line); 
  11. //echo $line;
  12. //$sql = "insert into ats values ('".implode("','", $arr) ."')";
  13. $sql = "insert into ats (no,empno,emp_name,shift,arrvl,out1,in2,out2,in3,out3,late,early,wrkhr,exthr,prs,remarks)
  14.     values('$arr[0]','$arr[1]','$arr[2]','$arr[3]','$arr[4]','$arr[5]','$arr[6]','$arr[7]','$arr[8]','$arr[9]','$arr[10]','$arr[11]','$arr[12]','$arr[13]','$arr[14]','$arr[15]')";
  15.  
  16. $result = mysql_query($sql) or die("Invalid query: " .mysql_error());
  17. }}
[Please use CODE tags when posting source code. Thanks! --pbmods]

it gives the error like

Fatal error: Maximum execution time of 60 seconds exceeded in C:\Program Files\typo3\htdocs\attendence\connection.php on line 86

so please give me urgent response
thanks in advance
Jun 25 '07 #1
1 1577
pbmods
5,821 Expert 4TB
Changed thread title to better describe the problem.

Heya, vaibhavkansara.

Have you tried MySQL's LOAD DATA INFILE command?
Jun 25 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: bettina | last post by:
I want to list all the countries (147 in total) per continent with the quantity of beercoasters that each country has. I get the following message: Fatal error: Maximum execution time of 30...
0
by: John Silver | last post by:
I have a perl script running on machine A, a web server. A visitor completes certain pieces of data and these are compiled into two emails, one addressed to the visitor and copied to the site...
12
by: Charles Law | last post by:
This is a bit of a vague question, but I am just starting on this, and wonder if anyone has ideas of where to start. I have a program that controls some external equipment. It sends messages in...
3
by: gregory_may | last post by:
I have an application where I am using a System Thread to capture the screen & Broadcast it to clients. Its "working", but the timing on the background thread gets wildly erratic at times. Some...
7
by: C.Joseph Drayton | last post by:
I have a problem that I am hoping someone can help me with. First let me describe the problem. I have an HTML form that in one field has an onBlur call to a JavaScript function. When you exit the...
10
by: Jim Underwood | last post by:
I am having a problem with my web page timng out while retrieving a long runnign report (90-120 seconds. I have tried modifying several settings in various places and cannot get it to run for more...
15
by: Jay | last post by:
I have a multi threaded VB.NET application (4 threads) that I use to send text messages to many, many employees via system.timer at a 5 second interval. Basically, I look in a SQL table (queue) to...
0
by: msconfused | last post by:
Hello all. I'm hoping that someone can help me solve this error. This is the error that I am getting. Fatal error: Call to a member function on a non-object in /home/paytoo/public_html/prices.php...
15
by: Lawrence Krubner | last post by:
Does anything about this script look expensive, in terms of resources or execution time? This script dies after processing about 20 or 25 numbers, yet it leaves no errors in the error logs. This is...
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: 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?
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
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
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...

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.