Terrum Posted April 2, 2009 Share Posted April 2, 2009 I am quite a PHP noob and willing to learn. I need a script what will have a button on a page what creates a text document file in a specific folder of the web server, And a code generator what randomally generates a code of numbers and letters (about a length of 5 or 6), And the generated code will be the name of the .txt file. (e.g: The php generates random numbers and letters, it goes onto the name of the .txt file - 9ti14a.txt) And inside the .txt file will just have the numbers "500". Then when the code is generated and the file is created, The screen will echo the generated code. I hope someone can help, Thanks. Link to comment https://forums.phpfreaks.com/topic/152256-need-script-for-txt-generator-etc/ Share on other sites More sharing options...
trq Posted April 2, 2009 Share Posted April 2, 2009 I hope someone can help, Where are you stuck? Were not here to simply write code for people. Link to comment https://forums.phpfreaks.com/topic/152256-need-script-for-txt-generator-etc/#findComment-799536 Share on other sites More sharing options...
Terrum Posted April 2, 2009 Author Share Posted April 2, 2009 I hope someone can help, Where are you stuck? Were not here to simply write code for people. I know how to make it generate codes and creating the generate button, But because i'm not really advanced I don't know how to make it create a .txt file with the generated code. Link to comment https://forums.phpfreaks.com/topic/152256-need-script-for-txt-generator-etc/#findComment-799542 Share on other sites More sharing options...
dgoosens Posted April 2, 2009 Share Posted April 2, 2009 have a look at the FileSystem Functions: http://be.php.net/manual/en/ref.filesystem.php Link to comment https://forums.phpfreaks.com/topic/152256-need-script-for-txt-generator-etc/#findComment-799545 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.