albusorin
October 22nd, 2004, 04:23 AM
Hello!
I try to upload a file from command line like this:
"www.mysite.com/upload.php? file=x.x & dirUp=/temp"
for an vb application, where I have a button and 2 parameters, witch are the file and the directory where i'm gonna put the file on the server
I don't know how to put the file into the php code.
<?
$file=$_GET['file'];
$uploaddir=$_GET['dirUp'];
move_uploaded_file($_FILES[&file]['tmp_name'],$uploaddir.'/'.$_FILES[&file]['name']);
?>
BUT it does't work
I try to upload a file from command line like this:
"www.mysite.com/upload.php? file=x.x & dirUp=/temp"
for an vb application, where I have a button and 2 parameters, witch are the file and the directory where i'm gonna put the file on the server
I don't know how to put the file into the php code.
<?
$file=$_GET['file'];
$uploaddir=$_GET['dirUp'];
move_uploaded_file($_FILES[&file]['tmp_name'],$uploaddir.'/'.$_FILES[&file]['name']);
?>
BUT it does't work