We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab074e5 commit 92db2c8Copy full SHA for 92db2c8
1 file changed
build/go.php
@@ -324,7 +324,7 @@ class="px-4 py-1 rounded block"
324
exit;
325
}
326
327
-$file = getcwd() . DIRECTORY_SEPARATOR . 'phpinfo.html';
+$file = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'phpinfo.html';
328
file_put_contents($file, $html);
329
330
$opened = match (PHP_OS_FAMILY) {
@@ -335,6 +335,6 @@ class="px-4 py-1 rounded block"
335
};
336
337
fwrite(STDERR, $opened
338
- ? "Saved to phpinfo.html and opened in your browser.\n"
339
- : "Saved to phpinfo.html\n"
+ ? "Opened in your browser.\n"
+ : "Saved to $file\n"
340
);
0 commit comments