The external storage is not a good soluction for the toolserver.
I use a little bloody hack to get all content :
ini_set('user_agent', 'TOOLSERVER'); $replag=file_get_contents(" http://tools.wikimedia.de/~interiot/cgi-bin/replag?raw");
$result1=mysql_query("select t.old_text,t.old_flags from ".$fields[1]."wiki_p.text as t,".$fields[1]."wiki_p.page as p,".$fields[1]."wiki_p.revision as r where p.page_title='".utf8_encode($fields[4])."' and p.page_namespace=0 and p.page_is_redirect=0 and p.page_latest=r.rev_id and r.rev_text_id=t.old_id",$db); if ($result1 == false) die("failed"); $fields1 = mysql_fetch_row($result1);
if (preg_match('/external/',$fields1[1]) or preg_match('/object/',$fields1[1]) or strlen($fields1[1])==0 or $replag>=300){ $text1=file_get_contents("http://%22.$fields%5B1%5D.%22.wikipedia.org/w/index.php?title=%22.$fields%5B..."); } else { $text1=gzinflate($fields1[0]); }
Ok . That works .. but is not very fast .... and produce load to the wiki-server ..
But i cant find a better solution.
Greeting Flacus/Flabot