Jump to content

Need Script for .txt generator (etc)


Terrum

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.