- split off files from tutorial.txt into lib/*.php
[m6w6/ext-http] / docs / examples / extract.php
diff --git a/docs/examples/extract.php b/docs/examples/extract.php
deleted file mode 100644 (file)
index 466c544..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-/**
- * extract examples from tutorial.txt
- */
-
-if (preg_match_all('/\n- ([^\n]+).*?(\<\?.+?\?\>)/s', file_get_contents($_SERVER['argv'][1]), $matches)) {
-       for ($i = 0; $i < count($matches[0]); $i++) {
-               file_put_contents(preg_replace('/\W/', '_', $matches[1][$i]).".php", $matches[2][$i]."\n");
-       }
-}
-
-?>