file_put_contents($filepath,$imagen);
does not save me in my hosting server, but in my computer directory if I insert the corresponding path. What could he not have done to keep me on the server?
file_put_contents($filepath,$imagen);
does not save me in my hosting server, but in my computer directory if I insert the corresponding path. What could he not have done to keep me on the server?
I found the solution on this page: link my mistake was that
$filepath = "http://www.example.com/AfuncServidor/imagenes/".$nombreFoto;
when it should be:
$filepath = $_SERVER['DOCUMENT_ROOT'] ."/AfuncServidor/imagenes/".$nombreFoto
That was my mistake, thank you very much to all and I hope you will serve this info to other novices like me: D: D