MediaWiki:Wikis.php

<?php

$data = file_get_contents("./wikis.txt"); $wikis = array; $wikis = explode("\n", $data); $fh = fopen('short_wikis.txt', 'r+'); foreach($wikis as $y) { $length = strlen($y); if($length == 12) { fwrite($fh, $y . "\n"); }	}	fclose($fh); unset($wikis); unset($data); $wikis = array; $fh = fopen('short_wikis_link.txt', 'r+'); $data = file_get_contents('./short_wikis.txt'); $wikis = explode("\n", $data); foreach($wikis as $y) { $name = substr($y, 0, 2); fwrite($fh, "$name, "); }	fclose($fh);