Colleagues.
We create a subdomain on our server and it is outside the public_html directory. But in this subdomain there is an upload system where photos are stored inside the public_html / products / directory.
The system works perfectly when it is used inside the same folder directory where it will allocate the images, but when we use it inside the subdomain, the photos do not go to folder.
The path we are using is:
<?php
if(move_uploaded_file($tempProd, '\public_html\produtos\'.$nomeFotoProd)){
....
}
?>
I've used it this way:
public_html / products /
And this:
../ public_html / products /
Until the absolute path ...
But nothing ...
Which path should I use in this case?