Hi I have this problem for 6 months now and still no answer that solve the problem With the php I retrieve the information viewers enter in form field on a previous page after the submit. php then should take that info and proces it into a single line. After it is processed it should be written into a .txt file. I use the folowing code for the php: - - - - - - - - - 09 - <?php //retrieves all the variables. 10 - $Naam = $_POST['Naam']; 11 - $Van = $_POST['Van']; 12 - $Klas = $_POST['Klas']; 13 - $Geslag = $_POST['Geslag']; 14 - $Kommando = $_POST['Kommando']; 15 - $Kontak = $_POST['Kontak']; 16 - $Braaipakke = $_POST['Braaipakke']; 17 - $Inskrywingsfooi = $_POST['Inskrywingsfooi']; 18 - $Totaal = $_POST['Totaal']; 19 - ?> - - - - - - - - - 24 - <?php//turned on to view all the errors 25 - ini_set('display_errors', 1); 26 - error_reporting(E_ALL); 27 - ?> - - - - - - - - - 42 - <?php $setting = 'allow_url_fopen'; ini_set($setting, ini_get($setting) ? 0 : 1); //first makes sure that url fopen is turned on 43 - $textline = "Naam en Van: $Naam $Van, Kontak Nommer: $Kontak, Groep: $Klas, Gelsag: $Geslag, Kommando: $Kommando, Aantal Kospakkies: $Braaipakke, Inskrywingsfooi: $Inskrywingsfooi, Totaal Verskuldig: $Totaal 44 - "; //processes the info into a single line (with line break at end) 45 - echo $textline; //displays the line that will be inserted into the file 46 - $file = fopen("intekendb.txt","a+"); //opens the file to write the info 47 - fputs($file,$textline); //writes into the file 48 - Fclose ($file); ?> //closes the file - - - - - - - - - Here are the errors this php generates: * Warning: fopen(intekendb.txt) [function.fopen]: failed to open stream: Permission denied in C:\Domains\transvaal.voortrekkers.org.za\wwwroot\kommandos\arbeidsvreugde\Bl adsye\intekendb.php on line 46 Warning: fputs(): supplied argument is not a valid stream resource in C:\Domains\transvaal.voortrekkers.org.za\wwwroot\kommandos\arbeidsvreugde\Bl adsye\intekendb.php on line 47 Warning: fclose(): supplied argument is not a valid stream resource in C:\Domains\transvaal.voortrekkers.org.za\wwwroot\kommandos\arbeidsvreugde\Bl adsye\intekendb.php on line 48 PHP Warning: fopen(intekendb.txt) [function.fopen]: failed to open stream: Permission denied in C:\Domains\transvaal.voortrekkers.org.za\wwwroot\kommandos\arbeidsvreugde\Bl adsye\intekendb.php on line 46 PHP Warning: fputs(): supplied argument is not a valid stream resource in C:\Domains\transvaal.voortrekkers.org.za\wwwroot\kommandos\arbeidsvreugde\Bl adsye\intekendb.php on line 47 PHP Warning: fclose(): supplied argument is not a valid stream resource in C:\Domains\transvaal.voortrekkers.org.za\wwwroot\kommandos\arbeidsvreugde\Bl adsye\intekendb.php on line 48 Please help me so that I can get this problem solved for once Jaco Theron