I was doing the tests on a local server (localhost) with Wampp, in which the following things worked perfectly, which kept the copied image of the given route to another local server folder. At that time the script had on the pc (wampp)
$imagen = file_get_contents('C:\Users\JoelR-FCA-ADM\Pictures\Cena Show.jpg');
file_put_contents('$_SERVER['DOCUMENT_ROOT'] ."/AfuncServidor/imagenes/1.jpg', $imagen);
when the scripts I uploaded to my paid hosting server no longer works with the path 'C:\Users\JoelR-FCA-ADM\Pictures\Cena Show.jpg'
only works with external images, or with path as' link 'yes it works. .
But what I need is that I work with the internal route of my pc, so that the user can upload it.
Can someone tell me why it works for me on the computer and not on the server? would it be because of the operating system that the server uses? I suppose Linux.
the error it gives is
failed to open stream: No such file or directory