Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/01/2009, 18:23
albertcito
 
Fecha de Ingreso: diciembre-2007
Mensajes: 169
Antigüedad: 16 años, 5 meses
Puntos: 6
Pregunta Modificar Dom con PHP

Tengo un string por ejemplo

Código PHP:
$variable '...Texto..... 
<img  src="img/imagen.gif"  width="152" height="212" /> 
....Más Texto....'

Luego tengo un función que se encarga de cambiar el tamaño de las imágenes

Código PHP:
modificarImg($variable,50);
echo 
$variable
Y el resultado debería ser:

Código HTML:
....Texto..... 
<img  src="img/imagen.gif"  width="50"  /> 
....Más Texto....
Ósea una función que tome un texto html y que entremedio del texto hallan imágenes y todas las imágenes las deje en el tamaño que yo le diga.

Php Dom ¿? pero ojala con php4 ... hosting grrr!!! :S