I'm new php user.
I used the code belowe to create a file, and I need some help to remove the created file from the server:
***** PLEASE USE THE
Code: Select all
TAG *****[/color]Code: Select all
if($fp=fopen($fdf_dir.'/'.$fdf_file,'w')){
fwrite($fp,$fdf_data,strlen($fdf_data));
// echo $fdf_file,' written successfully.';
}else{
die('Unable to create file: '.$fdf_dir.'/'.$fdf_file);
}
fclose($fp);
}
}else{
echo 'You did not submit a form.';
}