I was wondering if anyone could help me with what should be a simple PHP script. I want to write a text file, inputing different strings to different lines using some predefined lines and some input from a text box, then save it with another extension (such as .ini). Here's what I have:
<?php
$title = "[Readme]"; //
$reg_ad = "{AV232312 - B321 - ...}"; // Just random strings to insert
$icon_ad = "Icon=happy.ico"; //
<form action="customscript.php" method="get">
Your Name <input type="text" name="name" />
<input type="submit" />
</form>
?>
I'm not sure how to create/open a file and then insert the strings into it. I also was wondering if I could enable the form to upload a file to my server. Thanks for your help!