judging by the method invocation you have shown<br><br>site::memcache($pointername, $dataset);<br><br>that indicates <span style="font-style: italic;">site</span> is a class and <span style="font-style: italic;">memecahce</span>
is a method defined in <span style="font-style: italic;">site</span>, which is being invoked statically in this case.<br>and in the definition of <span style="font-style: italic;">memecache</span> you showed, the definition does not have the
<span style="font-style: italic;">static</span> keyword, therefore you<br>should not be invoking it from a static context.<br>from the documentation on the static keyword<br><span style="font-style: italic;">Calling non-static methods statically generates an E_STRICT level warning.
</span><br><br>its not a solution to your problem but it is a point on proper style.<br><br>-nathan<br><br><div><span class="gmail_quote">On 7/27/07, <b class="gmail_sendername">Sascha Braun - CEO @ Braun Networks</b> <
<a href="mailto:sascha@braun-networks.com">sascha@braun-networks.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi dear Sancar,
<br><br>you seem really the best man in place as what I see in the mailing<br>list :)) Thats really lovely I would like to say.<br><br>Now lets come to the solution I need:<br><br>public function memcache($pointer, $data="", $compress="", $timeout="0")
<br>// store or load data from the memcache<br>{<br>if (MEMCACHE_SUPPORT == 'true') {<br>$memcached_port = $_SESSION['memcache_port'];<br>if (empty($memcached_port)) { $memcached_port = '99999'; }<br>
$memcache = memcache_connect('localhost', $memcached_port);<br>if ($memcache) {<br>$memcache_pointer = PROJECT.$pointer;<br>$cache = $memcache -> get($memcache_pointer);<br>if (!$cache) {<br>$memcache->set($memcache_pointer,$data);
<br>$cache = $memcache -> get($memcache_pointer);<br>}<br>return $cache;<br>}<br>}<br>}<br><br>This is the Funktion I use to load and write data to the memcache<br>a write or restore looks like this here site::memcache('pointer',$data);
<br><br>This is working in many cases pretty fine.<br><br>Now I have a codepart, where the 'pointer' is getting created dynamical-<br>ly. Which means I do fx. a $content_id.'_'.$translation instead of wri-
<br>ting a simple 'pointer' as first parameter to the above function.<br><br>When I now call my XML Parser, to store data in memcache, and try to<br>recall, the data short after, it says:<br><br>File not found: This file somewhere in the suburbs.
<br><br>But when I try to output the XML Object before the data is written to<br>the cache, everything goes terribly fine.<br><br>Now I figured out, that when I use static naming for the memcache data<br>pointer 'pointer' everything goes fine.
<br><br>When I use the memcache directly, which means, I call the<br>$memcache->set() and $memcache->get() function from where I store data<br>everything goes fine again, even with dynamically created, variables.<br>
<br>But as soon as I use my function layer, call a to<br>site::memcache($pointername,$dataset); only returnes bullshit.<br><br>Mh, this makes me a little bit sad.<br><br>Maybe somebody or even you, can help me :))<br><br>
Best Regards, and a baba Respect from Germany, Dear Sancar!<br><br>Sascha<br><br>--<br>PHP General Mailing List (<a href="http://www.php.net/">http://www.php.net/</a>)<br>To unsubscribe, visit: <a href="http://www.php.net/unsub.php">
http://www.php.net/unsub.php</a><br><br></blockquote></div><br>