[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

RE: [PHP] Help with authentication 'design'

2003-02-18 Thread Clarkson, Nick
: Clarkson, Nick Sent: 18 February 2003 14:36 To: '[EMAIL PROTECTED]' Subject: [PHP] Help with authentication 'design' 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

RE: [PHP] Help with authentication 'design'

2003-02-18 Thread Clarkson, Nick
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 encryption function. You need

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] 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

[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

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: Re: [PHP

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

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

RE: [PHP] HELP please quickly

2003-01-22 Thread Clarkson, Nick
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 please quickly Date: Wed, 22 Jan 2003 14:15:32 - I'm pretty new to PHP so I can't help you with the code

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; ?php echo HTML; echo TITLE; echo /TITLE; echo BODY; ? Obviously padding it out a bit ;o) Then at the top of every page put; ?php require (header.php); ? Similarly you coud do a footer for every page.

[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 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]]

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 TABLE tags it won't work properly. I think your PHP works fine, it's your HTML ;o) Nick ?php $cols = array('#ff','#00ff00'); print TABLE; for