Aug 21, 2017 04:32 PM
(This post was last modified: Aug 21, 2017 04:50 PM by Irla.)
EDIT: I have found a solution !
I've tried so many different ways, the closest i got was it would read the first character then delete the whole text file,
I want the full text file to be displayed then to delete it.
This is what i've got so far
^^ yes i know i'm shit with php
I've tried so many different ways, the closest i got was it would read the first character then delete the whole text file,
I want the full text file to be displayed then to delete it.
This is what i've got so far
PHP Code
<?php
$myFile = "somefile.txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, 1);
fclose($fh);
echo $theData;
?>
<?php
array_map('unlink', glob("somefile.txt"));
?>^^ yes i know i'm shit with php

