Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $filename = 'tempfile.tmp';
- $handler = fopen($filename, 'a');
- fwrite($handler, 'some data');
- fclose($handler);
- clearstatcache(); //clear filesystem cache
- // 1.
- if (file_exists($filename)) {
- unlink($filename); // error faili pole
- }
- // 2.
- echo file_exists($filename);
- unlink($filename); // õnnestus
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement