I am having a problem with this code - it works normally if i run it as a php script although as soon as i run it through ajax it does nothing - runs all the other code except for this section.
$file_input = 'php_template.php';
$file_output = '69696969696969.php';
$file_open = fopen($file_output, 'w');
$file_input_read = file_get_contents($file_input, true);