Write text file php
php
Solution
Thanks. I resolved this problem with this http://www.redips.net/php/write-to-log-file/
Problem
Im using php. I want to write a php page to get parameters from another page and write to a file text. And: If already have file text, it write to a new line Each day create one file text Example: register.php ``` <body> <form action='process.php' method='GET'> Name: <input type='text' name='name'/> <br/> Age: <input type='text' name='age'/> <br/> <input type='submit' value='SUBMIT'/> </form> </body> ``` process.php ``` $name = $_GET['name']; $age = $_GET['age']; $file_handle = fopen("testFile.txt", "w"); $file_contents = "name:" . $name . "age:" . $age; fwrite($file_handle, $file_contents); fclose($file_handle); print "file created and written to"; ``` How can I do this?