\n
");
print_r($winfo);
print("");
}
else {
// no posix :( sux.
$filename = "user_test_" . time(); // i don't think such file will exist in cur dir ;P
if (!$handle = fopen($filename, 'w')) {
echo "Cannot open file ($filename)";
exit;
}
// Write to file.
if (fwrite($handle, "This is a test file, you can safely remove it.") === FALSE) {
echo "Cannot write to file ($filename)";
exit;
}
fclose($handle);
$file_stat = stat($filename);
print("Got info from creating a file!