Anonymous
public text v1 · immutable<?php
if(isset($_POST['applet']) && $_POST['applet'] == '0')
{
$myFile = "variables.php";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "<?php $applet=0; ?>";
fwrite($fh, $stringData);
fclose($fh);
}
else
{
$myFile = "variables.php";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "<?php $applet=1; ?>";
fwrite($fh, $stringData);
fclose($fh);
}
?>
When i try and get it to write the <?php $applet=1; ?> it ONLY writes <?php =1; ?>