I have built a simple uploader for a friend and I tested it against a root path that is direct path
/home/domain/www/
The problem I am having is that he has a hosting that uses virtual paths and the uploader is not working:
/home/virtual/domain/var/www/html/
Please give me some clues of how to get around this.
copy($file, "$rootPath/$storage/$file_name")
or die("Unable to upload $rootPath/$storage/$file_name");