I dont think you can include a file like
include ("profile.php?user1") and then expect it to do anything
But i know its possible using a different angle, this is probably not the solution ur looking for, but it might give u some inspiration.I assume in the following example that u call from a different page than profile.php
So if you make some kind of reference from lets say your main page it would be like:
<a href=profile.php?id=user1>blah</a>
and your profile.php page would recieve the variable $id which you can extract..
so ur profile.php would begin something like this:
<?php
if($id)
{
example 1:
fopen("profiles/".$id.".txt", "r")
/open file profiles/user1.txt to read mode
the u can extract tte information u need and echo it to the page.../
example 2:
include ("profiles/\".$id.\".txt")
/ include file and echo it afterwards/
}
else
{
...
}