ok, so I’ve been trying to figure out what I’ve been doing wrong.
can anyone help me please?
on (release) {
doLogin();
friend_id = fid;
trace (fid);
loadVariables("http://whore.lifeofme.net/fstorm.php", friend_id, "POST");
}
I’ve been using this to try and submit data to a txt file… but it wont work :[
here is the php code I’ve been using
<?php
#get friend id
$fid = $HTTP_POST_VARS['friend_id'];
#is fid a number?
if(!ctype_digit($fid))
{
#fid is not a number, kill script
exit(-1);
}
#fid is a number, proceed
#store fid log as an array
$log = file("db.txt");
#scan file for fid
foreach($log as $key => $value)
{
if ($fid == $value)
{
#fid is on the list, do not write it again
$writetolog = 0;
}
}
if ($writetolog != 0)
{
#fid is not on the list, write to end of file
$file = fopen("db.txt", "a");
fwrite($file, $fid . "
");
fclose($file);
}
?>
if anyone could help me solve my problem that would be great!!!
Thanks,
Aaron [http://lifeofme.net]