|
-
Jun 23rd, 2004, 08:14 AM
#1
Thread Starter
Frenzied Member
write to file on user's computer
I've been able to open a file on the webserver and write information to it, but I want to be able to write to a file on the user's computer. It's just a csv file and it's for a report. I'm using this:
PHP Code:
if (!$handle = fopen('C:\\data\\info.csv', "w")) {
echo "Cannot open file ($filename)";
exit;
}
but that doesn't seem to work. Help?
-
Jun 23rd, 2004, 10:58 AM
#2
<?="Moderator"?>
PHP is a server side langauge. Its executed at the server and no php is ever seen by the client.
Also for you to be able to write files to the users computer would be a big security risk.
If you still want to write files on the users computer then you could either create an ActiveX control or a java applet.
What about a differet method.
[list=A][*]You create a cookie on the users computer of thier ID and you store the data in a database on the server[*]You generate the file and prompt for the file to be downloaded by the user.[/list=1]
-
Jun 23rd, 2004, 11:36 AM
#3
Thread Starter
Frenzied Member
Well, that was my next option.... which is what I guess I'll be doing.
-
Jun 25th, 2004, 02:56 AM
#4
Lively Member
May someone point me the way to generate a file and prompt for the file to be downloaded by the user?
Like an activeX installer?
I am not even sure where to start looking, any help would be great!
Much Thanks!!
Julie Luvs

-
Jun 25th, 2004, 10:14 AM
#5
Stuck in the 80s
Originally posted by Julie_Luvs
May someone point me the way to generate a file and prompt for the file to be downloaded by the user?
Like an activeX installer?
I am not even sure where to start looking, any help would be great!
Much Thanks!!
What type of file?
-
Jun 25th, 2004, 10:42 AM
#6
Lively Member
its an exe file that was compiled to an exe
is this compatible?
Julie Luvs

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|