Hi
I am trying to upload a file using php.
This is the code that I am using for the php script called upload.php
html
?
if(!empty($userfile)) {
//copy the file to some permanent location
copy($userfile, /upload/myfile.txt);
//destroy the file
unlink($userfile);
//display message
echo(file
The directory must exists prior to copy, and must be writeable by the
server process.
Also note this is a filesystem path.
Pushpinder Sngh Garcha wrote:
Hi
I am trying to upload a file using php.
This is the code that I am using for the php script called upload.php
html
?
2 matches
Mail list logo