RE: [PHP] Help with authentication 'design'

2003-02-18 Thread Clarkson, Nick
ld be appreciated. Thanks, Nick -Original Message- From: Peter Hicks [mailto:[EMAIL PROTECTED]] Sent: 18 February 2003 14:43 To: Clarkson, Nick Cc: '[EMAIL PROTECTED]' Subject: RE: [PHP] Help with authentication 'design' Nick, md5 is a hashing function, not an encry

RE: [PHP] Help with authentication 'design'

2003-02-18 Thread Clarkson, Nick
Would this then pass both variables after being hashed with md5 ? Am I barking up the wrong tree ? Or just plain barking ;oD Thanks, Nick > -Original Message- > From: Clarkson, Nick > Sent: 18 February 2003 14:36 > To: '[EMAIL PROTECTED]' > Subject: [PHP] H

[PHP] Help with authentication 'design'

2003-02-18 Thread Clarkson, Nick
Hi, I've searched the archives, bit it's not helping me much purely because it's not specific PHP code I'm after, but rather help with a login system design. So far I've got a PHP_AUTH based login which checks against a MySQL database, and if the user's details are correct it updates the database

RE: [PHP] Sessions & Security

2003-01-23 Thread Clarkson, Nick
Thanks - I've only just joined the list so must have missed your previous msgs. I'll give them a read later. Thanks again. Nick -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: 23 January 2003 15:28 To: Clarkson, Nick; [EMAIL PROTECTED] Subject

[PHP] Sessions & Security

2003-01-23 Thread Clarkson, Nick
Hi, I am trying to find the best method for implementing sessions in PHP to track/limit users. However, the more I read, the more I am concerned about security. Can anyone give me a definitive answer as to the best method of tracking users with security in mind ? Thanks, Nick This private and

RE: [PHP] Disable pic copy/save?

2003-01-23 Thread Clarkson, Nick
This cannt be done in PHP. You would have to use something like Flash or Java - which is a lot of effort. The best you can do is disable right click using javascript, but that's easy to circumvent. Because everything's displayed client side, then a user could go into their Temporary Internet Files

RE: [PHP] Re: query caching & caching in general

2003-01-23 Thread Clarkson, Nick
I found this on Zend - SQL Query Caching - http://www.zend.com/zend/tut/tutorial-staub2.php; "The basics to caching is using the serialize() and unserialize() PHP functions..." I don't know if this will help. Nick -Original Message- From: Peter Janett [mailto:[EMAIL PROTECTED]]

RE: [PHP] A simple question please.

2003-01-22 Thread Clarkson, Nick
If the start of EVERY page is the same you could make your php include file as follows; "; echo ""; echo ""; ?> Obviously padding it out a bit ;o) Then at the top of every page put; Similarly you coud do a footer for every page. You can basically put it where you like as long as the HTML m

RE: [PHP] HELP please quickly

2003-01-22 Thread Clarkson, Nick
e is 7.1MB and seems to fail telling me "Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 81 bytes)" So it seems to be on hurrdle at a time. >From: "Clarkson, Nick" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: RE: [PHP] HELP

RE: [PHP] HELP please quickly

2003-01-22 Thread Clarkson, Nick
I'm pretty new to PHP so I can't help you with the code per se, but how about as an outline; Open the first file and read values into an array. Open the 2nd file and read in the first line. Compare each value in the array to see if it occurs in the line from the 2nd file you just read in. If it o

RE: [PHP] Measuring Query Times

2003-01-22 Thread Clarkson, Nick
There's exactly the code you're looking for I think over on Evilwalrus - http://www.evilwalrus.com/viewcode/632.php Hope it helps, Nick -Original Message- From: Peter Janett [mailto:[EMAIL PROTECTED]] Sent: 22 January 2003 06:46 To: [EMAIL PROTECTED] Subject: [PHP] Measuring Query Time

[PHP] Database abstraction class

2003-01-20 Thread Clarkson, Nick
Hi, Can anyone give me any pointers for creating a database abstraction class ? I know there are a few out there already, but I'm doing this purely as an OO learning exercise. I'm only at the paper design right now and I've only got this far; Properties: Persistent - Persistent connection

RE: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Clarkson, Nick
I've just tested this stripped down (some colours changed) version of your code and I get alternating rows no problem. On another point, without the tags it won't work properly. I think your PHP works fine, it's your HTML ;o) Nick "; for ($i = 0; $i<10;) { print ''; print "TEST" ; print " "; }

RE: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Clarkson, Nick
I think it's because you're setting the bgcolor="#bf" for the TD tag, so it's overriding using the TR tag bgcolor. The maths is OK, so if you remove the td bgcolor bit it *should* (standard disclaimer) work. Nick -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED]] Se