if($fp){
// echo "file opened";
}
else{
//echo "failed to open";
}
if(is_writable($file_name)){
//echo "file is writable";
}
else{
//echo "file is not writable";
}
$data = '
if(fwrite($fp, $data)){
//echo "data written";
}else{
//echo "fail to write data";
}
fclose($fp);
No comments:
Post a Comment