Skip to main content
Inspiring
June 23, 2007
Question

saving to .txt trouble

  • June 23, 2007
  • 2 replies
  • 345 views
I have created a flash login that loads a .txt file with the password inside. This works fine but i created a registration page that when the user types a username in the app it creates a directory called (what the user called the username) and then a file called password thaat includes: password=(password). The problem im having is that when i tested this it returned an error, can anybody go through my scripts and tell me what im doing wrong.

Thanks for any help
This topic has been closed for replies.

2 replies

jak9942Author
Inspiring
June 23, 2007
Sorry, that doesnt help. im running Mac OS X 10.4 and so it is http://Jak.local/.
Inspiring
June 23, 2007
I don't really know php but I would start by checking:
mkdir(' http://jak.local/~Jak/users/['user'

should that be more like:
mkdir('c:/jak.local/~Jak/users/'.$user,0755);

and
$fp = fopen(" http://jak.local/~Jak/users/['user' "w");
should it be more like:
$fp = fopen("c:/jak.local/~Jak/users/".$user."/username.txt", "w");

I have no idea if that's and issue it just jumped out at me. Like I said I don't know php.