Re: [PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Nathan Nobbe
ppp and static / non-static are unrelated topics. the former is regarding access control or visibility into the members (variables or methods) of a class. the latter is regarding whether a member can be called from the context of an instance or not. essentially static means to associate a function

Re: [PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Sascha Braun - CEO @ Braun Networks
I checked out the book from mister rethans and mister gutmans and mister bakken, mh, its seems easier to simply say how the book is named :)) To check out, what exactly it means, to create static and public and so on methods. Yeah, I can easely call them static, as you prefered. But now there cam

Re: [PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Sascha Braun - CEO @ Braun Networks
Thank you very much Nathan. You mean I should change the the method from public to static? Is that right? I hope I was getting you right. I now juggled around abit with the code, and as it happens most of the time, in case I invoke the XML object, that the file given was not read right. When i i

Re: [PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Nathan Nobbe
judging by the method invocation you have shown site::memcache($pointername, $dataset); that indicates site is a class and memecahce is a method defined in site, which is being invoked statically in this case. and in the definition of memecache you showed, the definition does not have the static

[PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Sascha Braun - CEO @ Braun Networks
Hi dear Sancar, you seem really the best man in place as what I see in the mailing list :)) Thats really lovely I would like to say. Now lets come to the solution I need: public function memcache($pointer, $data="", $compress="", $timeout="0") // store or load data from the memcache { if (MEMCAC