Hello,
I upload a file from my HTML form that I have made, which sends to a PHP script that uploads onto a folder on my webserver...
How do I get the full path of the uploaded file??
ie. http://websitename.com/uploaded/filename.jpg
Thanks
This is the code I am using:
$target = '/home/chartn01/public_html/panel/users/'.$row['username'];
if(!is_dir($target)) @mkdir($target);
$target = $target . '/progress';
if(!is_dir($target)) @mkdir($target);
$path1= $target."/".$_FILES['ufile']['name'][0];
copy($_FILES['ufile']['tmp_name'][0], $path1);
Thanks
I upload a file from my HTML form that I have made, which sends to a PHP script that uploads onto a folder on my webserver...
How do I get the full path of the uploaded file??
ie. http://websitename.com/uploaded/filename.jpg
Thanks
This is the code I am using:
$target = '/home/chartn01/public_html/panel/users/'.$row['username'];
if(!is_dir($target)) @mkdir($target);
$target = $target . '/progress';
if(!is_dir($target)) @mkdir($target);
$path1= $target."/".$_FILES['ufile']['name'][0];
copy($_FILES['ufile']['tmp_name'][0], $path1);
Thanks