Código PHP :
function generarGaleria($archivoSalida, $dir_grandes, $dir_pequeñas){
$dirLectura=@opendir($dir_grandes);
if(!$dirLectura){
$string = "<error/>\n";
$write = fputs($fp, $string);
exit;
La cosa es que me está dando errores con los directorios que les paso que llevan acentos. Ej.
generarGaleria('galeria_proy_Imagenes3d.xml', "PROYECTOS/PLANOS E IMÁGENES 3D/Imágenes 3D/", "PROYECTOS/PLANOS E IMÁGENES 3D/Imágenes 3D/thumbnails/");
Con el resto (sin acentos ni ñ) funciona bien.
He probado con el urlencode(), utf8encode(). Incluso con esta función antes de pasar los argumentos:
//Para ñ y acentos
function cambio_texto($texto){
$n_texto=ereg_replace("á","à",$texto);
$n_texto=ereg_replace("é","é",$n_texto);
$n_texto=ereg_replace("í","í",$n_texto);
$n_texto=ereg_replace("ó","ó",$n_texto);
$n_texto=ereg_replace("ú","ú",$n_texto);
$n_texto=ereg_replace("Á","Á",$n_texto);
$n_texto=ereg_replace("É","É",$n_texto);
$n_texto=ereg_replace("Í","Í",$n_texto);
$n_texto=ereg_replace("Ó","Ó",$n_texto);
$n_texto=ereg_replace("Ú","Ú",$n_texto);
$n_texto=ereg_replace("ñ", "ñ", $n_texto);
$n_texto=ereg_replace("Ñ", "Ñ", $n_texto);
$n_texto=ereg_replace("¿", "¿", $n_texto);
return $n_texto;
}
Pero siempre me salta el error.
