close-circle
Close

PHP-p-ing

A project log for Flashing Light Prize (5) IoT Pacing

Stress Shd Be More Stressful

Vije Miller 07/21/2017 at 02:390 Comments
<?php
$onoroff = $_GET["state"];
$textfile = "flp.txt";
$fileLocation = "$textfile";
$fh = fopen($fileLocation, 'w   ') or die("Crap!");
$stringToWrite = "$onoroff";
fwrite($fh, $stringToWrite);
fclose($fh); 
?>

Discussions