Commit: ecbe3461bc55a9ab64e20254dfbb6c59de88eae5 Author: v-maf...@microsoft.com <v-maf...@microsoft.com> Thu, 20 Mar 2014 16:36:32 -0700 Parents: 7b54aba3516a2a526c81925f9b885a6473ad6910 Branches: master
Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=ecbe3461bc55a9ab64e20254dfbb6c59de88eae5 Log: Publish PFTT Reports Changed paths: M pftt_report.php Diff: diff --git a/pftt_report.php b/pftt_report.php index ea1c722..2530f05 100755 --- a/pftt_report.php +++ b/pftt_report.php @@ -98,9 +98,18 @@ $report_file = dirname($_SERVER['SCRIPT_FILENAME']) . "/reports/db/$branch/$revi $report_dir = dirname($report_file); // ensure dir exists -mkdir($report_dir, 666, TRUE); +//mkdir($report_dir, 0666, TRUE); +$a = ""; +$b = explode("/", $report_dir); +var_dump($b); +foreach ($b as $c) { + $a .= "/" . $c; + var_dump($a); + if (!is_dir($a)) + mkdir($a, 0777); +} -$fh = fopen($report_file, "w"); +$fh = fopen($report_file."_", "w"); fwrite($fh, "<html>hello</html>"); fclose($fh); -- PHP Quality Assurance Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php