Jump to content
Sign in to follow this  
elcsat

[Resolvido] duvida url imagem maluco

Recommended Posts

elcsat

boa noite, tou a exportar imagens de um servidor de um cliente, para a nova versao de um site, o que me acontece é que tenho imagens todas malucas com espaços e caracteres esquisitos, como posso aceder as imagens por url.

obrigado

Share this post


Link to post
Share on other sites
elcsat

tou a usar esta função nas imagens

function recebe_imagem($url_origem,$arquivo_destino){
$minha_curl = curl_init ($url_origem);
$fs_arquivo = fopen ($arquivo_destino, "w");
curl_setopt ($minha_curl, CURLOPT_FILE, $fs_arquivo);
curl_setopt ($minha_curl, CURLOPT_HEADER, 0);
curl_exec ($minha_curl);
curl_close ($minha_curl);
fclose ($fs_arquivo);
}

Edited by yoda

Share this post


Link to post
Share on other sites
elcsat

sim mas copiar milhares de imagens por ftp, esquece demora muito tempo.

já passei tudo, resolvido, fui lá as que dava erro e mudei o nome directamente xD

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.