I am having a problem here I am editing my install file for my script and I need to create a file with the following :
Code: Select all
$license_key='code';
Here is what I have
Code: Select all
$filename = file.php
$file_content .= chr(ord("<")) . "?php" . "\r\n";
[b]$file_content .=$license_key = "'".$_POST['license']."'";[/b]
$file_content .=chr(ord("?")) . ">";
$handle = fopen($filename, 'w+');
if($handle) {
fwrite($handle, $file_content);
fclose($handle);
}