com web/qa: Publish PFTT Reports: pftt_report.php

From: Date: Thu, 20 Mar 2014 23:36:32 +0000
Subject: com web/qa: Publish PFTT Reports: pftt_report.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-67255@lists.php.net to get a copy of this message
Commit: ecbe3461bc55a9ab64e20254dfbb6c59de88eae5 Author: v-mafick@microsoft.com <v-mafick@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);

« previous php.qa (#67255) next »