I have a directory called 'profiles'
inside the directory i have individual username files eg. username.dat
Where username will be that persons username.
Now I want to be able to check if that person's file is there and report an error if not and if it is, run my function.
Can someone write me a code for that.
the username will be picked from a query string.. eg..
?user=USER_NAME
so then $user will equal USER_NAME
Then change it into a file name USER_NAME.dat
$filename = "$user.dat";