I'm new in File handling. So I was wondering how would I go about to write a php file with php?
Let's say I want to make a php script which creates a file which contains the following code:
PHP File TO be Created
<?php
$item = "takes a variable from current file and put it here";
?>
Let's say I have a php which took the following from my form:
Code which takes a variable and writes it to another php file, exactly as it is
<?php
$item = $_GET['shirts'];
//Code which writes to Php File above
?>
I have no idea how to do this. Please be very explicit when you explain. Thanks :)