That works with the script.php?value=pie&another=cheese&again=mooCode:<?php
foreach($_GET as $k=>$v) {
$c .= $k.": ". $v ." | ";
**
$c = substr($c, 0, strlen($c)-3);
$f = dirname($_SERVER['SCRIPT_FILENAME']) ."/data.txt";
echo $f;
$fp = fopen($f, "w+");
fwrite($fp, $c, strlen($c));
fclose($fp);
?>
It works the data.txt file will be in the same folder as the script is
