Hello guys
I got a PHP script which move uploaded file to a directory on my web server.
I tried http://stackoverflow.com/questions/21982...m-c-client
but it's not working,
someone got the function like UploadFile() ?
thanks.
I got a PHP script which move uploaded file to a directory on my web server.
Code
<form method="post" action="" enctype="multipart/form-data"> <input type="file" name="fichier" id="fichier" size="30" /><br /><br /><input type="submit" name="submit" value="Upload" /></form>PHP Code
<?php
$uploaddir = './uploads/';
$file = basename($_FILES['userfile']['name']);
$uploadfile = $uploaddir . $file;
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "http://mysite.com/uploads/{$file}";
}
I tried http://stackoverflow.com/questions/21982...m-c-client
but it's not working,
someone got the function like UploadFile() ?
thanks.
