[PHP] php: mpeg / avi / mov

2002-01-25 Thread Edward van Bilderbeek - Bean IT
Hi, I want to know the dimensions (width, height) of an mpeg / avi / mov file... does anyone know how I can arrange that with PHP or possibly via a UNIX command string? Greets, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] a quick question..

2002-01-27 Thread Edward van Bilderbeek - Bean IT
Or, if you've already set your massive list of variables...: $varname = nr.rand(0, $n); print ${$varname}; - Original Message - From: Miles Thompson [EMAIL PROTECTED] To: Tauntz [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, January 27, 2002 8:15 PM Subject: Re: [PHP] a quick

Re: [PHP] Back button to Query Pages

2002-01-28 Thread Edward van Bilderbeek - Bean IT
Hi, a possible solution is also to provide the backbutton href with the original variable values... print a href='bladibla.php?var1=val1var2=val2'back/a\n; Greets, Edward - Original Message - From: Nick Wilson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 28, 2002

Re: [PHP] Back button to Query Pages

2002-01-28 Thread Edward van Bilderbeek - Bean IT
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Edward van Bilderbeek - Bean IT blurted Hi, a possible solution is also to provide the backbutton href with the original variable values... I'm pretty sure he means the /browser/ back button though. - -- Nick Wilson Tel: +45

[PHP] Mpeg

2002-01-28 Thread Edward van Bilderbeek - Bean IT
Hi, I've asked this question before, but no answer... so here it is again: does anyone now how I can get the dimensions (width, height) of an mpeg file? maybe via a unix command... (because in the PHP manual, I can't find anything about it, and I'm not that much of a unix-guru...)... thanks,

Re: [PHP] Sending Form Arrays

2002-01-28 Thread Edward van Bilderbeek - Bean IT
try something like this: input type=checkbox name=check[0] value='Y' check 1BR input type=checkbox name=check[1] value='Y' check 2BR input type=checkbox name=check[2] value='Y' check 3BR input type=checkbox name=check[3] value='Y' check 4BR input type=checkbox name=check[4] value='Y' check 5BR

Re: [PHP] HTML lists PHP

2002-01-28 Thread Edward van Bilderbeek - Bean IT
maybe you can try something like this... $r1 = game1 $r2 = game16; echo select name='game'; echo option value=game1$teams[$r1]/option; echo option value=game1$teams[$r2]/option; echo /select; Greets, Edward I keep getting parse error with this code: ($teams[] is a big array that

Re: [PHP] is create_function slow?

2002-01-29 Thread Edward van Bilderbeek - Bean IT
including a file is nothing more then placing the text of the include file at the place you called include() so I think there's no reason why it should be quicker or slower... Edward Hi, is create function slow? Or has it a very significant slowdown compared to an include? i might want

Re: [PHP] Attachments with mail() function

2002-01-30 Thread Edward van Bilderbeek - Bean IT
I recommend sending yourself a mail with an attachment and check the sourcecode of the received mail... together with base64encode() you should be able to do the job... Edward - Original Message - From: Rafael Perazzo B Mota [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday,

Re: [PHP] A real simple question...

2002-01-30 Thread Edward van Bilderbeek - Bean IT
and if you want to write it to a file directly then do something like: exec('ftpusers filename.txt'); Greets, Edward Take a look at exec() passthru() system() Keep in mind that the webserver usally runs as User nobody or an equivilant of that. So this user should have rights to run

Re: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Edward van Bilderbeek - Bean IT
The whole idea of MD5 is to generate a unique code from your string. It's practical impossible to generate an identical string that creates the same unique code. So youcan be sure that someone that creates the same code also created the same text... e.g. a password... it's impossible to reverse

Re: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Edward van Bilderbeek - Bean IT
huh? well, use md5()... if you want a password that can be decrypted too, I'm afraid you have to write you're own encryption / decryption algoritm... maybe you can use base64encode() (don't know for sure)... but in both cases, if someone guesses your used encoding algoritm, you have a

Re: [PHP] Tables Loading Slow

2002-01-30 Thread Edward van Bilderbeek - Bean IT
Maybe this is a solution for you: instead of: table trtd1/tdtddata 1/td/tr trtd2/tdtddata 2/td/tr trtd3/tdtddata 3/td/tr trtd4/tdtddata 4/td/tr /table you can do this: table trtd1/tdtddata 1/td/tr /tablebr table trtd2/tdtddata 2/td/tr /tablebr table trtd3/tdtddata 3/td/tr /tablebr table

[PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
hi, is there a simple way to replace an occurence of a string, into another, maintaing capital positions... Like: $str = This equals this equals tHis; and I wanna replace all occurences of this in that, that the result will be: $str = That equals that equals That; Edward -- PHP General

Re: [PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
that is not what I meant... I want the cases to remain... - Original Message - From: Rick Emery [EMAIL PROTECTED] To: 'Edward van Bilderbeek - Bean IT' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 31, 2002 10:47 PM Subject: RE: [PHP] ereg et all try: eregi_replace

Re: [PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
Oh, that was a typo... sorry... it should be: This equals this equals tHis - That equals that equals tHat Edward - Original Message - From: Jeff Sheltren [EMAIL PROTECTED] To: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 31, 2002 10:56

Re: [PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
hmm, that's not what i wanted to hear :-))) e.g. try doing that for the word: transparancy looots of different possibilities then... Edward - Original Message - From: Jeff Sheltren [EMAIL PROTECTED] To: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Edward van Bilderbeek - Bean IT
? not for me :-) Greets, Edward - Original Message - From: Jeff Sheltren [EMAIL PROTECTED] To: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 31, 2002 11:06 PM Subject: Re: [PHP] ereg et all Ahhh, ok makes more sense now. Although, I don't

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Edward van Bilderbeek - Bean IT
Wow, thanks a lot... although it should be \\0 here... didn't see anything in the manual about the \\ maybe gotta look for it again :-) Thanks, Edward - Original Message - From: Richard Crawford [EMAIL PROTECTED] To: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED] Cc: [EMAIL

Re: [PHP] Re: Email Attachment

2002-02-01 Thread Edward van Bilderbeek - Bean IT
what also is a great help, is sending yourself an email with an attachment, en check the sourcecode of your mail... (in outlook that is: properties, details, message source)... one tip: don't forget the empty lines between the sections... Greets, Edward - Original Message - From: Mike

Re: [PHP] Adding 6 digits to a str?

2002-02-02 Thread Edward van Bilderbeek - Bean IT
like this: $digit = 122; $digits = sprintf (%08d, $digit); print $digits; Greets, Edward - Original Message - From: Jeff Sheltren [EMAIL PROTECTED] To: Andy [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, February 02, 2002 6:41 PM Subject: Re: [PHP] Adding 6 digits to a str?

Re: [PHP] date problems

2002-02-04 Thread Edward van Bilderbeek - Bean IT
i think it is the strtotime() function that gives the trouble... why don't you try mktime() ? sounds like it might have something to do with leap year. Jim Lucas - Original Message - From: toni baker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 12:03

Re: [PHP] uksort wisdom

2002-02-04 Thread Edward van Bilderbeek - Bean IT
shouldn't it be: uksort($array_array,cmp); Greets, Edward - Original Message - From: Sondra Russell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 5:52 AM Subject: [PHP] uksort wisdom Hi Guys! I'm looking to get a *deeper understanding* of uksort. My

Re: [PHP] Tricky array question

2002-02-05 Thread Edward van Bilderbeek - Bean IT
try using something like this: $varname = $categories[0]; echo ${$varname}[0]; Greets, Edward Andy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi there, I have a tricky array question. My app is passing via post a array variable called glacier. Now I am

Re: [PHP] Change of Language

2002-02-05 Thread Edward van Bilderbeek - Bean IT
check out: setlocale() Greets, Edward - Original Message - From: Nicolas Llamosas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 4:13 PM Subject: [PHP] Change of Language How can in change the language in my site? (spanish) for example using the function

Re: [PHP] Create Mysql Records From a Comma separated Values String

2002-02-06 Thread Edward van Bilderbeek - Bean IT
$array_foo = explode(,, $foo); for ($i=0; $icount($array_foo); $i++) { mysql_query(INSERT INTO table VALUES ( . $array_foo[$i] . )); } Greets, Edward - Original Message - From: Simos Varelakis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 06, 2002 1:54 PM

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
I don't know if this is the best way but: $str = This is or was a test for short words; while (ereg( [a-z]{1,3} , $str)) { $str = eregi_replace( [a-z]{1,3} , , $str); } print $str; this replaces all occurences of a space followed by 1,2 or 3 alphabetic characters followed by a space... the

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
; - Original Message - From: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Michael Kimsal [EMAIL PROTECTED] Sent: Friday, February 08, 2002 12:33 AM Subject: Re: [PHP] Regex function needed I don't know if this is the best way but: $str = This is or was a test

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
after some puzzling I came to this: $str = One as a start. This is or was a test for short words, although an, should be deleted to.; $str = preg_replace(array(/\b[A-Za-z']{1,3}\b/, /[ ]{1}([ ]{1}|[,]{1}|[.]{1}|[:]{1})/), array(, \\1), $str); print $str; which means: first: replace all 1,2

Re: [PHP] Syntax ???

2002-02-08 Thread Edward van Bilderbeek - Bean IT
just quote the 'y' in your query: $ynumber = mysql_query(SELECT COUNT(*) As Cnt FROM responses WHERE response='y'); Edward - Original Message - From: Ron Clark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 08, 2002 7:38 PM Subject: [PHP] Syntax ??? -BEGIN PGP

Re: [PHP] One more quickie

2002-02-09 Thread Edward van Bilderbeek - Bean IT
or: SELECT LEFT(date, 7) as YearAndMonth FROM table; Edward - Original Message - From: val petruchek [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Saturday, February 09, 2002 2:28 PM Subject: Re: [PHP] One more quickie Don?t really want to bother you with these quickies -

Re: [PHP] Age

2002-02-09 Thread Edward van Bilderbeek - Bean IT
don't know if there is some date_diff -like function, but you can do it this way: $now = getdate(); $nw_year = $now[year]; $nw_month = $now[mon]; $nw_day = $now[mday]; $chk_date = 09/02/1977; list ($chk_day, $chk_month, $chk_year) = explode(/, $chk_date); print $nw_year; $age = $nw_year -

Re: [PHP] possible bug in date() function

2002-02-10 Thread Edward van Bilderbeek - Bean IT
it was last week though... guesss you mean 29th? Edward LaserJetter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Using the code below: $buffer['Last_access'] = 1013336429; $date = date(H:i D, nS M Y,$buffer['Last_access']); print $date; prints 10:20

Re: [PHP] printing files

2002-02-13 Thread Edward van Bilderbeek - Bean IT
just put the lines in an array, each array element contains a line... and then just print the specified array elements... Edward - Original Message - From: John Gurley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 13, 2002 12:55 PM Subject: [PHP] printing files

Re: [PHP] Tricky variable question! Impossible??

2002-02-16 Thread Edward van Bilderbeek - Bean IT
Well, as long as you use double quotes: the variables will be parsed inside you statement... single quotes however mean the exact string... example: $icon = 1.jpg; $str = this is the image $icon; $str2 = 'this is the image $icon'; print $str; // returns: this is the image 1.jpg print $str2; //

Re: [PHP] regular expressions

2002-02-21 Thread Edward van Bilderbeek - Bean IT
first of all: why do you use: [0-9][0-9]*... you better use: [0-9]+ then same goes for \w and I guess you don't need the ('s and )'s either... Edward - Original Message - From: German Castro Donoso [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 5:26 PM

Re: [PHP] Date calculations

2002-02-21 Thread Edward van Bilderbeek - Bean IT
? $date1 = 2002-02-25 10:02:04; $date2 = 2002-02-24 09:02:04; list($date1,) = explode( , $date1); list($date2,) = explode( , $date2); list($year1, $month1, $day1) = explode(-, $date1); list($year2, $month2, $day2) = explode(-, $date2); $intdate1 = mktime('0', '0', '0', $month1, $day1,

Re: [PHP] Re: NULL value for variable

2002-02-21 Thread Edward van Bilderbeek - Bean IT
if you move your mouse over the Download Now section... what is the statusbar displaying?? Edward - Original Message - From: Narvaez, Teresa [EMAIL PROTECTED] To: 'Sanduhr' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 5:05 PM Subject: RE: [PHP] Re: NULL value

Re: [PHP] Re: NULL value for variable

2002-02-21 Thread Edward van Bilderbeek - Bean IT
why can't i see anywhere in this code what value: $row[PicNum]; contains? try: a href=downloadfile.php?fileId=1 instead of: a href=downloadfile.php?fileId=?php echo $row[PicNum]; ? if, it's working then, then your error is there... Greets, Edward - Original Message - From:

Re: [PHP] Click class

2002-02-22 Thread Edward van Bilderbeek - Bean IT
to me it just seems that that site is using a frameset... and changing one frame, doesn't change the body of the parentframe... and that frame is being just for the URL shown. The class='click' thing is just used for layout purpose... check out CSS (Cascading Style Sheets) for more

Re: [PHP] Re: Newbie on Sessions/Pages Management

2002-02-23 Thread Edward van Bilderbeek - Bean IT
every script you use the variable should contain a session_start() statement... - Original Message - From: Michael Kimsal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 23, 2002 5:26 PM Subject: [PHP] Re: Newbie on Sessions/Pages Management Alexander P. Javier wrote:

Re: [PHP] Convert An Array

2002-02-24 Thread Edward van Bilderbeek - Bean IT
http://www.php.net/manual/en/function.array-count-values.php - Original Message - From: jtjohnston [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 24, 2002 10:49 PM Subject: [PHP] Convert An Array http://ccl.flsh.usherb.ca/db/authors_under_study.php or $names =

Re: [PHP] array_search

2002-02-26 Thread Edward van Bilderbeek - Bean IT
array_search returns the key-value of the searched value that is found... in the first case... the returned key is 0 because it's the first element... however... 0 is also the same as FALSE... you should use === (three ='s) ... it's used to compare both value and type... (and 0 is not the

Re: [PHP] is_uploaded_file() emulation?

2002-02-27 Thread Edward van Bilderbeek - Bean IT
What about: ENV[USER] or ENV[USERNAME] (see phpinfo())... Greets, Edward - Original Message - From: Bogdan Stancescu [EMAIL PROTECTED] To: Martin Towell [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Stewart Gateley [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002

[PHP] textarea

2002-02-27 Thread Edward van Bilderbeek - Bean IT
Hi, I've got a strange HTML problem... When I have a textarea, and put a large text in it, the submit button isn't working if the text is very long, but it is working till a certain amount of characters (didn't check out which amount) I can click as many times as i want on the submit

Re: [PHP] textarea

2002-02-27 Thread Edward van Bilderbeek - Bean IT
action... Edward - Original Message - From: Bas Jobsen [EMAIL PROTECTED] To: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 4:53 PM Subject: Re: [PHP] textarea textarea echo addslashes($text); /textarea Op woensdag 27 februari 2002 16:38

Re: [PHP] keeping the dot

2002-03-04 Thread Edward van Bilderbeek - Bean IT
Try thinking? Don't be a jerk. Don't be a programmer... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Alphabet

2002-03-07 Thread Edward van Bilderbeek - Bean IT
something like: for ($i=ord('A'); $iord('A')+26; $i++) { $str .= chr($i); } print $str; Greets, Edward - Original Message - From: Jeroen Timmers [EMAIL PROTECTED] To: [General] [EMAIL PROTECTED] Sent: Thursday, March 07, 2002 11:37 AM Subject: [PHP] Alphabet Is there a simple

Re: [PHP] using a variable to a function call

2002-03-07 Thread Edward van Bilderbeek - Bean IT
isn't it the easiest way to do something like this: class test { function do ($var) { if ($var=='you') { $this-you_function(); } else { $this-me_function(); } } function you_function() { ... } function

Re: [PHP] Hi problem with selected value!!

2002-03-11 Thread Edward van Bilderbeek - Bean IT
guess that should be: alert(document.babai.bongu.selectedIndex); Greets, Edward - Original Message - From: Balaji Ankem [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Monday, March 11, 2002 11:23 AM Subject: [PHP] Hi problem with selected value!! Hi friend, could u

[PHP] Re:

2002-03-11 Thread Edward van Bilderbeek - Bean IT
why aren't you posting this on the general PHP list? you should upload the word doc and then base64encode it into you mailmessage... there are some mailclasses available on the internet... check them out... Edward - Original Message - From: Swati Patil [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] 5 Records per line

2002-03-11 Thread Edward van Bilderbeek - Bean IT
just use something like this in your while-loop: if ($counter % 5 == 0) { print br; } Greets, Edward - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 11, 2002 5:08 PM Subject: Re: [PHP] 5 Records per line On Tuesday 12 March

Re: [PHP] input

2002-03-13 Thread Edward van Bilderbeek - Bean IT
the single quotes you use for your echo indicate that the variable in your echoed string won't be parsed double quotes indicate that it will be parsed... e.g. $test = 1 echo '$test' // prints: $test echo $test // prints: 1 Greets, Edward hello, Someone was kind enough to

Re: [PHP] Sorting in php

2002-03-14 Thread Edward van Bilderbeek - Bean IT
check the 1001 sort functions in the manual http://www.php.net for instance... Edward - Original Message - From: Uma Shankari T. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 1:36 PM Subject: [PHP] Sorting in php Hello, Can anyone please tell me is

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
you can't use a variable as a parameter for the included file... because include does nothing else then putting the text of the include file on the place of the include statement... so this should work: $var = 'bladibla'; include('index.php'); Greets, Edward - Original Message -

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
- Original Message - From: Erik Price [EMAIL PROTECTED] To: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED] Cc: Phil Schwarzmann [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 14, 2002 10:58 PM Subject: Re: [PHP] include() question On Thursday, March 14, 2002, at 04:34 PM, Edward

Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT
Jep, that was what I meant... sorry Erik, didn't read your question right... Edward - Original Message - From: Jan Rademaker [EMAIL PROTECTED] To: Erik Price [EMAIL PROTECTED] Cc: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED]; Phil Schwarzmann [EMAIL PROTECTED]; [EMAIL PROTECTED

Re: [PHP] multiple variables

2002-03-15 Thread Edward van Bilderbeek - Bean IT
or use something like this: $array_values = array(1,2,3,4); if (in_array(user($arbitraryVariable), $array_values)) { // do your stuff } Greets, Edward - Original Message - From: Christoph Starkmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 15, 2002 4:11 PM

Re: [PHP] Formatting input text?

2002-03-16 Thread Edward van Bilderbeek - Bean IT
Just use javascript... (be careful, what works with IE, doesn't automatically work with Netscape)... Greets, Edward - Original Message - From: Andre Dubuc [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 16, 2002 4:44 PM Subject: [PHP] Formatting input text? I wonder

Re: [PHP] Problem with sessions.

2002-03-16 Thread Edward van Bilderbeek - Bean IT
maybe you better use: session_unregister(counter); Greets, Edward - Original Message - From: Carlos Costa Portela [EMAIL PROTECTED] To: php-general mailing list [EMAIL PROTECTED] Sent: Saturday, March 16, 2002 4:49 PM Subject: [PHP] Problem with sessions. Hello all: I am playing

Re: [PHP] Formatting input text?

2002-03-16 Thread Edward van Bilderbeek - Bean IT
As Oliver says, it is possible in PHP, but then you have to do it, AFTER the form is submitted... Just do some regular expressions on your data before displaying / storing it... Edward - Original Message - From: Andre Dubuc [EMAIL PROTECTED] To: Edward van Bilderbeek - Bean IT [EMAIL

Re: [PHP] Comparrison

2002-03-27 Thread Edward van Bilderbeek - Bean IT
use regular expressions: if (ereg(MSIE 5.5, $HTTP_USER_AGENT)) { } Greets, Edward - Original Message - From: Ron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 1:46 PM Subject: [PHP] Comparrison How would I compare to variables where I would want one

[PHP] FTP

2002-04-04 Thread Edward van Bilderbeek - Bean IT
Hi, I'm creating an FTP script for uploading files... but now, when I pull out the network plug of the server (so the connection is lost), my program doesn't stop running... any ideas of how to check if a connection is still alive? Edward // partial code: for ($i=0; $imysql_numrows($query);