Re: [PHP] Login

2008-10-08 Thread Bernhard Kohl
?php # I would recommend using the include method. Redirects should always be second choice, because they are just evil. # Example code below $password = md5('swordfish'); $user = 'Trucker Joe'; if ($_POST['user'] == $user md5($_POST['password']) == $password) {

Re: [PHP] concatenating with . or ,

2008-08-27 Thread Bernhard Kohl
tedd wrote: There are significant orders of magnitude difference between your results and mine. For example, it didn't make any difference if you used a comma or concatenation, but in my system concatenation was 15 times faster than using a comma. Interesting, I would have guessed it would

Re: [PHP] concatenating with . or ,

2008-08-25 Thread Bernhard Kohl
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleTest for Tedd/title /head body ?php # Ok tedd, if you insist ..

Re: [PHP] Writing my own web based user forum

2008-08-01 Thread Bernhard Kohl
?php #User authentication should not be a problem at all. #If you want it simple just serialize a user class and write it to a file or into a DB. class user { var $username; var $pw; function set_user($name, $pw) { $this-pw = md5($pw); $this-username = $name; return true; } } $new_user

Re: [PHP] Internationalisation and MB strings

2008-08-01 Thread Bernhard Kohl
/* snippetty */ foreach ($mb_array as $mb_string) { strlen('œŸŒ‡Ņ'); } /* snip */ Oh, this is supposed to be a *strlen($mb_string)*; of course

Re: [PHP] After INSERT form submit - Data doesn't refresh!

2008-07-22 Thread Bernhard Kohl
I'm pretty sure this is a cache issue .. To disable caching:* header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past header('Pragma: no-cache'); * But if you have the modification date then use *$time =

Re: [PHP] After INSERT form submit - Data doesn't refresh!

2008-07-22 Thread Bernhard Kohl
Thijs jou should read the OP's statement again .. The OP wrote: . *(The INSERT function is executed before the SELECT in the page).*

Re: [PHP] An HTML5 radar chart

2008-07-19 Thread Bernhard Kohl
I did not get it to work in Opera 9.5. But in Firefox 2.x it worked Why are you doing that with JavaScript?

Re: [PHP] Advice on a radar chart

2008-07-15 Thread Bernhard Kohl
If you are willing to use googles chart api .. http://code.google.com/apis/chart/#radar Yeti On Tue, Jul 15, 2008 at 11:35 AM, Richard Heyes [EMAIL PROTECTED] wrote: Hey, Can anyone suggest an efficient method for plotting the marks on a radar chart? I have the background done (

Re: [PHP] IPv6 validation

2008-07-12 Thread Bernhard Kohl
Doesnt filter_var() require PHP5+ ? I have quite some systems still running 4.4.8. On 7/12/08, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Yeti [EMAIL PROTECTED] wrote: Now i was wondering of what there might be the best way to validate an IPv6 address. from