Hey, I have a question on fwrite. I know that fwrite can write things to your server, for instance, but when I put try to write C:\foo.txt, will this actually save it to my server, or to the clients computer? If not, then is there any way that I can save it on the clients computer?

Thank you, glut.

Recommended Answers

You can not use PHP to write to your clients computer (only cookies).

Jump to Post

All 4 Replies

You can not use PHP to write to your clients computer (only cookies).

Member Avatar

As Pritaeas states - no write to client. Could you imagine if it was possible? :icon_evil:

lol @ the emoticon ardav! It's surprising how often the server-side to client-side issue is mentioned between programming languages.

Member Avatar

Well, I'm sure you can do it with PHP GTK. But that's a mess IMO and the user needs it installed - so probably not what you need.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.