Re: [PHP] Singletons

2008-10-20 Thread n3or
Christoph Boget schrieb: Apart from making the constructor private, is there any way I can ensure that there is ever only one instance of an object? you could use the magic method __clone. For example: public function __clone() { trigger_error('The singleton pattern avoids cloning this in

Re: [PHP] Singletons

2008-10-20 Thread n3or
Christoph Boget schrieb: Apart from making the constructor private, is there any way I can ensure that there is ever only one instance of an object? you could use the magic method __clone. For example: public function __clone() { trigger_error('The singleton pattern avoids cloning this instanc

Re: [PHP] Adding encryption to passwords

2008-09-19 Thread n3or
I use SHA-256 (use hash - php.net/manual/en/function.hash.php), because its a little bit more secure then md5 or SHA-1. BTW: Don't forget the salts.. -- Viele Grüße Dominik Strauß - www.n3or.de Webentwicklung, PHP und Linux Mobil: 0178 4940605 Internet: www.n3or.de E-Mail: [EMAIL PROTECTED]

Re: [PHP] Altering the error_reporting

2008-09-03 Thread n3or
Diogo Neves schrieb: On Wed, Sep 3, 2008 at 6:55 PM, n3or <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] schrieb: I am looking for a way to alter the error_reporting(E_All) This displays Parse error: parse error, unexpected '}' in /var/www/html/test.php on line 7 I wa

Re: [PHP] Altering the error_reporting

2008-09-03 Thread n3or
[EMAIL PROTECTED] schrieb: I am looking for a way to alter the error_reporting(E_All) This displays Parse error: parse error, unexpected '}' in /var/www/html/test.php on line 7 I want to remove the file location and line number from the error to only produce Parse error: parse error, unexpect

[PHP] Google Chrome

2008-09-03 Thread n3or
Shawn McKenzie schrieb: Per Jessen wrote: Stut wrote: On 2 Sep 2008, at 20:23, Diogo Neves wrote: Now is the time ;) Indeed: http://www.google.com/chrome But only for Windows for now :( I guess we'll have to wait a little longer then ... /Per Jessen, Zürich Will somebody volunteer t

Re: [PHP] anyone have HTML snippet example of HTTP method = put?

2008-08-02 Thread n3or
enctype="multipart/form-data" eventually?! mike schrieb: I have this: File: Looking in my webserver logs, it changes that to a GET. Ideas anyone? The receiver is PHP and I am pretty sure I know how to handle it once it is properly PUT-ted. (I run nginx for the server and have enabled P

Re: [PHP] Why PHP4?

2008-07-28 Thread n3or
Compatibility to older Software of the hosters and sloth of the developers Richard Heyes schrieb: I'm interested - why are people still using PHP4? It's been over 4 years (I think) - plenty of time to upgrade to five. -- Viele Grüße Dominik Strauß - www.n3or.de Webentwicklung, PHP und Linux M

Re: [PHP] restricting access to folders on server

2008-03-24 Thread n3or
. please advice. thanks. Hey, I think that should be the right Thing for you: http://httpd.apache.org/docs/2.0/howto/auth.html Have a nice Day n3or -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php