Codice PHP:
$f="http://".$_SERVER['HTTP_HOST']."/img/logoSx.gif";
$filez = fopen($f, "r");
$contents = fread($filez, filesize($f));
$encoded_attach = chunk_split(base64_encode($contents));
fclose($filez);
Codice PHP:
$f="http://".$_SERVER['HTTP_HOST']."/img/logoSx.gif";
$filez = fopen($f, "r");
$contents = fread($filez, filesize($f));
$encoded_attach = chunk_split(base64_encode($contents));
fclose($filez);
Non sempre essere l'ultimo è un male... almeno non devi guardarti le spalle
il mio profilo su PHPClasses e il mio blog laboweb