$file = $_FILES['userfile']['tmp_name'];
print_r($file . "");
print($_FILES['userfile']['size'] . "");
move_uploaded_file($file, "/Uploads");
/*
gives the following output
d:\raheel\w3sites\phpDE.tmp
73699
*/
/*
$file = $_FILES['userfile']['tmp_name'];
print_r($file . "");
print($_FILES['userfile
$file = $_FILES['userfile']['tmp_name'];
print_r($file . "");
print($_FILES['userfile']['size'] . "");
move_uploaded_file($file, "/Uploads");
/*
gives the following output
d:\raheel\w3sites\phpDE.tmp
73699
*/
/*
$file = $_FILES['userfile']['tmp_name'];
print_r($file . "");
print($_FILES['userfile
/*
i m now using the following script to upload the file but
still it is not working..
I there would've been some permission problem , i have given
"full control" permission to the whold directory even the drive there
the site is hosted.
now the script is generating the following out put
which m
I haven't done but one file upload, but it seems from the error message
that maybe PHP is trying to write the file to
d:\raheel\w3sites\txtfiledemo\uploads\ (as a file?). Perhaps you should
include the $_FILES['userfile']['name'] to the ending statement (which I
believe is what the file's original
hi,
I got a problem in a simple file upload in a php file , i have two pages and i m
writing the code here as bellow
::page1.php::
Send this file:
::default2.php::
move_uploaded_file($_FILES['userfile']['tmp_name'],
"D:\\Raheel\\W3sites\\txtfiledemo\\uploads\\");
print($_F