Please login or register to view this content. Registration is FREE - Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
You can use file handling function like as fopen.
$file=fopen("welcome.txt","w") or exit("Unable to open file!");
welcome.txt is file name. w means write mode, you can also use r to read mode only.