Un usuario de forosdelweb creo este código:
Código PHP:
Ver originalfunction save_img($image) {
$img_path_parts = pathinfo($image_path['path']);
$filename = $img_path_parts['filename']
$img_ext = $img_path_parts['extension'];
$path = "img/";
$filex = $path . $filename . "." .$img_ext;
$fh = fopen($filex, 'w'); }
Asegurate que el " $path = "img/"; " existe en el servidor y que se escribible por el process de httpd
Si quieres usarlo puedes llamarlo de esta forma
Código PHP:
Ver originalsave_img("http://www.prueba.com/imagen.jpg")
http://www.forosdelweb.com/f18/guard...1/#post2562257
Saludos