All exams are online now due to COVID related precautions | Download the app or write to us at info@vskills.in

Certified PHP Developer Learning Resources Opening a File

Opening a File
 


Open a File
copy$my_file = 'file.txt';
$handle = fopen($my_file, 'w') or die('Cannot open file:  '.$my_file); //open file for writing ('w','r','a').