954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Question on fwrite

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.

glut
Light Poster
42 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

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

pritaeas
Posting Expert
Moderator
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

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

diafol
Rhod Gilbert Fan (ardav)
Moderator
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 

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

bloodbender
Light Poster
38 posts since Jun 2011
Reputation Points: 12
Solved Threads: 2
 

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.

diafol
Rhod Gilbert Fan (ardav)
Moderator
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: