I've made this script and I just wanted it to get checked before I fuck up my total internet domain. Will this work? It should add a simple string to the end of a file and change the content of another file (increment the number that the file contains).
CODE
<?
$fstring = "This is just a string.";
$fnum_1 = include("http://twizzle.koeniedesign.com/counter.txt"); // counter.txt is a file with a number used for other purposes.
$fnum_2 = intval($fnum1) + 1;
$fo_1 = fopen("http://twizzle.koeniedesign.com/comlib.js/", "a"); // comlib.js is a file that stores all the strings
$fw_1 = fwrite($fo_1, $fstring);
fclose($fo_1);
$fo_2 = fopen("http://twizzle.koeniedesign.com/counter.txt/", "w");
$fw_2 = fwrite($fo_2, $fnum_2);
fclose($fo_2);
?>
Koenie