<?php
$file = fopen("http://fahhem.t35.com/usernames/".$user.".txt","a+");
$passwordcheck = fread ($file,8);
fclose ($file);
$file = fopen("http://fahhem.t35.com/usernames/".$user.".txt","r+");
fwrite ($file,"workin!");
fclose ($file);
?>
My code looks perfect but it doesn't write anything to the file at all.
Also, is there a file mode where it opens for writeor read and write, it attempts to create the file, and sets the pointer to the beginning of the file?
Thanks in advance!