On the clients computer? Not really...
On a separate server? Yes ([man]fwrite[/man])
To do anything client-side you'd need a client-side scripting language like JavaScript. I dont' think PHP can actually change documents on the clients computer, it's a security thing....
And you can always use cookies (as Thorpe said) [man]Cookies[/man] <-- properly linked