简体   繁体   中英

Problem with destination in file upload with PHP

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?

  1. enter 000webhost's ' File Manager.
  2. create folder uploads under public_html .
  3. set your code like the follower: $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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM