RE: [PHP] Insecurity with PHP authorization

2001-08-07 Thread Remo Pini
Or you could tell your webserver to deny everything except access to redirect.php, this saves you from moving everything to some obscure place... > -Original Message- > From: Michael Mehlmann [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 07, 2001 10:18 AM > To: Stefen Lars > Cc: [EMA

[PHP] indexing files

2001-07-24 Thread Remo Pini
hi i'm trying to index several files (ms office, pdf, txt, html) using php and LINUX, are any suggestions and/or libraries for that around? greets, remo Remo Pini Pini Computer Trading http://www.pct.ch Tel: +41 1 822 1000 Fax: +41 1 882 4000 Mob: +41 79 216 1551 -- PHP Ge

RE: [PHP] Need some help with this idea!

2001-07-24 Thread Remo Pini
select * from whatnot order by timestampcolumn desc limit 1 if the "limit 1" doesn't work with your db, just fetch the first result only... greets, remo > -Original Message- > From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 8:28 AM > To: [EMAIL PROTECTED] >

RE: [PHP] array from mysql help?

2001-07-24 Thread Remo Pini
To be destructive, I would use a sensible data-representation in mysql, yours seems to suck... something like table x idx as integer, auto_increment, primary key node as text parent as int (this points to the parent primary key) But here is what I would do with the current data structure (recur

RE: [PHP] How to select a line from a web page source?

2001-07-11 Thread Remo Pini
The simplest way I could think of would be to use a regex: /^(.*Jim.*)$/g (g=global) and then using $1 (the content of the parenthesis), this would give you the whole line containing "Jim". Greets, remo ps: is perl syntax, needs to be adjusted for php... > Hi there: > > I wanna select a line

RE: [PHP] Average of column...

2001-07-10 Thread Remo Pini
t = mysql_query("select AVG(age) as avgage FROM bat_rost WHERE > ownerID = '$teamID'"); > $res = mysql_fetch_row($age_result) > $age=$res[0]; > echo "Average age - ".$teamID.$avgage; > > > > -Original Message- > > From: Remo Pi

RE: [PHP] Average of column...

2001-07-10 Thread Remo Pini
if you do a $res = mysql_fetch_row($age_result) $res[0] will be the value of AVG(age). > -Original Message- > From: Jeff Lewis [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 5:27 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Average of column... > > > I am trying to obtain t