I am trying to upload files with PHP to 000webhost,but I am facing problems with the destination path.
I used this line of code
$target_path = "/public_html" .$filename;
But thid does not work.Can someone help me how to set the destination path when uploading file to remote server?
000webhost's
' File Manager. uploads
under public_html
. $target_path="uploads/" . $filename;
$target_path="uploads/" . $filename;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.