How can i create a text file at run time using php? I want to create in localhost server please guide me
$fh = fopen('PATHTOFILE','w+'); fwrite($fh, 'This is a test'); flcose($fh); PHP: above will create a file, write this is a test in it and close it again.