evank3 Posted November 22, 2006 Share Posted November 22, 2006 First off I need to know how to write to a certain line of a file from a form... I have a code here, but do not know how to add it to a certain line:[code]<?php$word = $_REQUEST["word"] ;$writedata = $word . "\n";$file = fopen("filter.txt", "a");fwrite($file, $word);fclose($file);?>[/code]I need "fwrite($file, $word);" to write the word to line 4 of my other file filter.phpNext I need to be able to delete certain words from line 4 of filter.php from a form.Thanks in advance,Evan Link to comment https://forums.phpfreaks.com/topic/28175-language-filter/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.