postResults.php

From Organic Design wiki
Revision as of 10:31, 3 August 2008 by Nad (talk | contribs) (New page: <?php # {{php}}{{lowercase}} $text = '...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<?php

  1. Template:Php

$text = ; foreach($_POST as $k => $v)

if (ereg("^testTable_[0-9]+", $k) && preg_match("#status_(passed|failed).+?<td.+?>(.+?)#", $v, $m)) $text .= "$m[2]: $m[1]\n"; file_put_contents(dirname(__FILE__)."/results.txt", $text, FILE_APPEND);