Re: [PHP] Login

2008-10-08 Thread Bernhard Kohl
http://us.php.net/manual/en/function.include.php # http://en.wikipedia.org/wiki/Code_injection#PHP_Injection ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 woul

Re: [PHP] concatenating with "." or ","

2008-08-25 Thread Bernhard Kohl
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Test for Tedd Comma took: '.(abs($e_t - $s_t)*1000/$iterations).' milliseconds on average.'; # <-- Concatenation ob_start(); $s_t = microtime(true); foreach ($test_array as $array_value) {

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] Writing my own web based user forum

2008-08-01 Thread Bernhard Kohl
pw = md5($pw); $this->username = $name; return true; } } $new_user = new user(); if ($new_user->set_user('Joe', 'swordfish') { $fp =@ fopen('/some_dir/users.txt', 'a'); @fwrite($fp, serialize($new_user)); @fclose($fp); } # the next time you need it simple read it in again with unserialize

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

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 ( > htt

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