[PHP-DB] Re: php-db Digest 9 Jun 2002 13:18:08 -0000 Issue 1246

2002-06-09 Thread chidambaram

Hi,
   i am using php4.1.2 apahce1.3.240
  i am getting this warning 
Warning: Unknown list entry type in request shutdown (0) in Unknown
on line 0

could anyone help in solving this 
thanks in advance for your help

chidambaram





 --- [EMAIL PROTECTED] wrote:  
 php-db Digest 9 Jun 2002 13:18:08 - Issue 1246
 
 Topics (messages 19689 through 19700):
 
 Re: Auto-update database records
   19689 by: Jason Wong
   19690 by: Tony
   19691 by: Jason Wong
   19692 by: Tony
   19693 by: Jason Wong
 
 Re: MySQL problem on Yellow Dog Linux
   19694 by: Garrett Nelson
   19695 by: Jason Wong
   19696 by: Garrett Nelson
   19697 by: Jason Wong
 
 arranging folders hiearchy
   19698 by: SP
   19699 by: SP
 
 Hyperwave Upload Error, hw_insert_document()
   19700 by: Jean HAUSSER
 
 Administrivia:
 
 To subscribe to the digest, e-mail:
   [EMAIL PROTECTED]
 
 To unsubscribe from the digest, e-mail:
   [EMAIL PROTECTED]
 
 To post to the list, e-mail:
   [EMAIL PROTECTED]
 
 

--
 

 ATTACHMENT part 2 message/rfc822 
 From: Jason Wong [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Sat, 8 Jun 2002 20:45:04 +0800
 Subject: Re: [PHP-DB] Auto-update database records
 
 On Saturday 08 June 2002 20:35, Tony wrote:
  Here is my code.
  If you see some variables not defined, assume it is:
 
 Hmm, is there a problem with your code? If so could you state what
 the problem 
 is?
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications
 Development *
 
 
 /*
 Any man who hates dogs and babies can't be all bad.
   -- Leo Rosten, on W.C. Fields
 */
 
 

 ATTACHMENT part 3 message/rfc822 
 Date: Sat, 08 Jun 2002 05:52:54 -0700
 From: Tony [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP-DB] Auto-update database records
 
 You are being picky on me, huh?
 I stated my problem 3 emails ago, browser gives me error attempt
 to load
 MyPage's URL failed.
 Could be because of execution timeout.
 I tried to set the time longer with no luck.
 If I put the flush() after each data, I get the first output only.
 But I need to update the database very often, and I don't want to
 do it by
 hands..
 
 Tony S. Wu
 [EMAIL PROTECTED]
 
 
  On Saturday 08 June 2002 20:35, Tony wrote:
  Here is my code.
  If you see some variables not defined, assume it is:
  
  Hmm, is there a problem with your code? If so could you state
 what the problem
  is?
 
 
 
 

 ATTACHMENT part 4 message/rfc822 
 From: Jason Wong [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Sat, 8 Jun 2002 21:27:09 +0800
 Subject: Re: [PHP-DB] Auto-update database records
 
 On Saturday 08 June 2002 20:52, Tony wrote:
  You are being picky on me, huh?
 
 I'm sorry if you feel offended ...
 
  I stated my problem 3 emails ago, 
 
 ... but I delete mail from this list as soon as I've finished with
 them. As 
 you have started a new thread one would naturally assume this is a
 new 
 problem. Please don't expect people to remember dead threads.
 
  browser gives me error attempt to load
  MyPage's URL failed.
 
  Could be because of execution timeout.
  I tried to set the time longer with no luck.
  If I put the flush() after each data, I get the first output
 only.
  But I need to update the database very often, and I don't want to
 do it by
  hands..
 
 Have you tried tracking down where it is that the script fails? 
 
 Either use echo() or error_log() at various points in the script to
 monitor 
 what the program is doing. For example before starting the
 while-loops 
 echo(Entering while loop) and inside the while-loop
 echo($counter), and 
 when the loop terminates echo someting to that effect. This should
 at least 
 tell you whether you have any infinite loops.
 
 Another thing you can do is simplify the check for the prices. Your
 present 
 method seems to be veru long-winded. I think a single preg_match()
 could 
 replace the while ($counter  $i) loop.
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications
 Development *
 
 
 /*
 YOU PICKED KARL MALDEN'S NOSE!!
 */
 
 

 ATTACHMENT part 5 message/rfc822 
 Date: Sat, 08 Jun 2002 06:34:56 -0700
 From: Tony [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP-DB] Auto-update database records
 
 I do appreciate your reply.
 Yes, I've tried to track down the problem.
 I comment-out the fopen() function and use echo to display the URL.
 And it displays fine, so I did get the record from MySQL.
 Then when I put the fopen() back, same problem appears.
 I think it's probably because I have too much data to update at
 once, over a
 hundred maybe?
 Then it causes the PHP to timeout this script hence the error.
 If I can't solve this on PHP, I'll have to find an alternative

[PHP-DB] controling url variable when reading csv file

2002-04-28 Thread chidambaram

Hi All

i am reading a file named index.csv through a php script
i want make a php script such that

for example http://www.chida.com/in.php?topic=flucol=1,2

the php script should read the index.csv and variables fromthe url
and display according to it.In the above example it should read csv
file and display only the columns 1,2(under topic) of the csv file.
could anyone help me with the php code and please suggest me site
which has the same type of code snippets.
thanks in advance

thanks
E.chidambaram


For live cricket scores download  Yahoo! Score Tracker
 at: http://in.sports.yahoo.com/cricket/tracker.html

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] conroling url variable when reading csv file

2002-04-27 Thread chidambaram

Hi All

i am reading a file named index.csv through a php script
i want make a php script such that

for example http://www.chida.com/in.php?topic=flucol=1,2

the php script should read the index.csv and variables fromthe url
and display according to it.In the above example it should read csv
file and display only the columns 1,2(under topic) of the csv file.
could anyone help me with the php code and please suggest me site
which has the same type of code snippets.
thanks in advance

this is the code i have written but it doesnot work propery as i 
expect
?php
 
$row=r0;
  $fp = fopen(index.csv,r);
  while ($data = fgetcsv($fp,1000)) {
  $num = count($data);
 
   print fields in line $row: br;
  $row++;
  for ( $c=0; $c$num; $c++ )  ;
if($HTTP_GET_VARS['topic'] = fluent)
{
print $data[$c] ;
}
 
else{
}
 
}
 fclose($fp);
?


Thanks
E.chidambaram


For live cricket scores download  Yahoo! Score Tracker
 at: http://in.sports.yahoo.com/cricket/tracker.html

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Help me with php script calculate Download time of file

2001-12-13 Thread chidambaram

Hi everyone,
Could anyone help me giving a php code that
calculates time required to download a url
(including downloading of images in that particular url).
if you could tell me the site also it would be great helpful
to you people.

Thank You
E.chidmbaram


For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds...
Visit http://in.finance.yahoo.com/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]