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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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.