Zyse Posted February 11, 2010 Share Posted February 11, 2010 <?php $fn = "file.txt"; $file = fopen($fn, "a+"); $size = filesize($fn); $space.= "\n"; if($_POST['addition']) fwrite($file, $_POST['addition']); $text = fread($file, $size); fwrite ($file, $space); fclose($file); ?> <form action="<?=$PHP_SELF?>" method="post"> <input type="text" name="addition"/><br/> <input type="submit"/> </form> Its sapoosed to add a line to a file save it, then I cant find a script to grab a url from a line in that fil, its so damn frusterating. if anyone knows of a current script similar or any basis I can shoot from for , text box for digits(no limit on amount) that will place it in url format such as www.url.com/account=xxx which xxx = the digits entered put that as a line into a text file then anotehr button that opens a random line(url) from the files into a frame to the right. I havent even been able to get any working code that will write a line to a file on my server >_<... Quote Link to comment https://forums.phpfreaks.com/topic/191734-found-this-but-it-doesnt-want-to-work-any-other-suggestions/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.