download a file
Posted: Mon Jun 23, 2003 2:10 am
hi
i am new to php.
i wanted my user, to be able to download the file from my site on to his computer.
for this i gave the following code line
copy ($sourcefile,$destfile);
the sourcefile has the file name with path which the user is going to copy
and the destfile has the path of the users computer where he will be copying the file.
but when i execute the .php file i get the error saying
Warning: copy(d:/) [function.copy]: failed to create stream: Permission denied
why so?
can anybody pls help me fast
regards
rajesh
i am new to php.
i wanted my user, to be able to download the file from my site on to his computer.
for this i gave the following code line
copy ($sourcefile,$destfile);
the sourcefile has the file name with path which the user is going to copy
and the destfile has the path of the users computer where he will be copying the file.
but when i execute the .php file i get the error saying
Warning: copy(d:/) [function.copy]: failed to create stream: Permission denied
why so?
can anybody pls help me fast
regards
rajesh