Is there any method to create text file on Client machine ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gopi123
Forum Newbie
Posts: 1
Joined: Sat Jul 19, 2003 6:07 am

Is there any method to create text file on Client machine ?

Post by gopi123 »

Hi all,


I want to create the text file on the client machine through the program.
Is there any method to do so? :?:

Your reply is highly appreciated.

Thanks in advance.

Bye for now,
Gopinath
User avatar
Fredix
Forum Contributor
Posts: 101
Joined: Fri Jul 18, 2003 2:16 pm
Location: Wehr (Eifel) Germany
Contact:

Post by Fredix »

i think that the only thing you can create on a client machine is a cookie. I'm !not sure! but you maybe can use JavaScript to create a textfile on clientside.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

You can create a text file on your server and make it available as a download to the user but you definitely can't use PHP to save it directly to the user's computer. I doubt that you'd be able to use client side stuff to do this either - imagine the security risk if it were possible for web sites to save any old file on a client machine.

Mac
User avatar
Fredix
Forum Contributor
Posts: 101
Joined: Fri Jul 18, 2003 2:16 pm
Location: Wehr (Eifel) Germany
Contact:

Post by Fredix »

imagine the security risk
yes, that's another interesting topic because I still wonder why people consider JavaScript as a security hole and disable it.
Gleeb
Forum Commoner
Posts: 87
Joined: Tue May 13, 2003 7:01 am
Location: UK
Contact:

Post by Gleeb »

popups, nuffsaid
User avatar
PaTTeR
Forum Commoner
Posts: 56
Joined: Wed Jul 10, 2002 7:39 am
Location: Bulgaria
Contact:

Post by PaTTeR »

This is possible, but not with PHP. You can use Java aplication for this, but your users must give it access.
Post Reply