C'è un modo in php di copiare letteralmente una foto pubblicata in un altro sito?
Se non c'è, c'è un modo per richiamare un comando della shell come wget per farlo?
Grazie
C'è un modo in php di copiare letteralmente una foto pubblicata in un altro sito?
Se non c'è, c'è un modo per richiamare un comando della shell come wget per farlo?
Grazie
per acquisire il codice html (o dell'immagine) di una url fai così:
in $handle hai l'html... dopodichè crei il fileCodice PHP:
$handle = file_get_contents("http://www.tusito.it", "r");
in handle hai il codice dell'immagine... crea un file.jpg e lo riempi con $handleCodice PHP:
$handle = file_get_contents("http://www.tusito.it/img.jpg", "r");
Guybrush Threepwood
Originariamente inviato da Threepwood
per acquisire il codice html (o dell'immagine) di una url fai così:
in $handle hai l'html... dopodichè crei il fileCodice PHP:
$handle = file_get_contents("http://www.tusito.it", "r");
in handle hai il codice dell'immagine... crea un file.jpg e lo riempi con $handleCodice PHP:
$handle = file_get_contents("http://www.tusito.it/img.jpg", "r");
sistema perfetto, grazie