Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

reset-temp-file.php

<?php
require_once 'portabilityLayer.php';

if (!sys_get_temp_dir()) {
    echo "FAIL: No temp dir was returned.\n";
    exit();
}

$tmpFile = sys_get_temp_dir() . "/" . $_GET['filename'];

if (!file_put_contents($tmpFile, "test")) {
    echo "FAIL: unable to write to file: " . $tmpFile . "\n";
    exit();
}
if (!unlink($tmpFile)) {
    echo "FAIL: Unable to delete file: " . $tmpFile . "\n";
    exit();
}
?>

Generated by  Doxygen 1.6.0   Back to index