Ver Mensaje Individual
  #20 (permalink)  
Antiguo 26/08/2011, 11:04
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 10 meses
Puntos: 2135
Respuesta: Ignorar ampersand para que no tome como variable

Lo mejor:
Código PHP:
Ver original
  1. $file = "/ruta/al/archivo&con&simbolos.jpg";
  2. $ruta = rawurlencode($file);

Código PHP:
Ver original
  1. $ruta = rawurldecode($_GET['ruta']);
  2. echo "<img src=\"$ruta\" border=\"0\" />";

Saludos.