Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/08/2010, 13:23
rpv
 
Fecha de Ingreso: febrero-2010
Mensajes: 275
Antigüedad: 15 años, 1 mes
Puntos: 10
Respuesta: Detectar palabra en url

con strpos():

Código PHP:
Ver original
  1. $url='http://www.newyorkevent.com/listing.php?id=10'
  2. if(strpos($url,'listing')!==false){
  3. echo 'wrapper_listing.tpl';
  4. }else{
  5. echo 'wrapper_home.tpl';
  6. }