Answers for "How to check if fwrite failed php"

PHP
0

How to check if fwrite failed php

fOpen("TestFile.txt", "w+");

if(fwrite("Test data") === false){
	
	echo("Data writing failed.");
	
}else{
	
	echo("Data writing successfull.");
}

fclose();
Posted by: Guest on February-19-2020

Browse Popular Code Answers by Language