Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Otros entornos y lenguajes > PHP
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos

 
 
Herramientas Buscar en Tema Desplegado
  #9  
Antiguo 11-07-2007
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.141
Poder: 36
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Mira tú por dónde de lo que se entera uno:

Cita:
Empezado por función Header de PHP

(Hablando de distintos casos especiales de uso de "Header")

El segundo caso especial es la cabecera "Location:". No solo envía esta cabecera de vuelta al navegador, sino que también devuelve un código de status REDIRECT (302) al navegador a menos que algún código de status 3xx haya sido enviado ya.
Esto quiere decir que acaso podríamos evitarnos:

Cita:
Empezado por yo mismo
Código PHP:
header("HTTP/1.1 301 Moved Permanently"); 
Pero, no es así; debe haber alguna diferencia entre el código 301 y el 302. Ahora bien, aquí está:

Cita:
Redirection 3xx

The codes in this section indicate action to be taken (normally automatically) by the client in order to fulfill the request.

Moved 301

The data requested has been assigned a new URI, the change is permanent. (N.B. this is an optimisation, which must, pragmatically, be included in this definition. Browsers with link editing capabiliy should automatically relink to the new reference, where possible)

The response contains one or more header lines of the form

URI: <url> String CrLf


Which specify alternative addresses for the object in question. The String is an optional comment field. If the response is to indicate a set of variants which each correspond to the requested URI, then the multipart/alternative wrapping may be used to distinguish different sets

Found 302

The data requested actually resides under a different URL, however, the redirection may be altered on occasion (when making links to these kinds of document, the browser should default to using the Udi of the redirection document, but have the option of linking to the final document) as for "Forward".

The response format is the same as for Moved .
__________________
David Esperalta
www.decsoftutils.com

Última edición por dec fecha: 11-07-2007 a las 04:39:24.
Responder Con Cita
 


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Búsquedas en la misma página (2). Tonio HTML, Javascript y otros 0 09-03-2007 18:39:53
Búsquedas en la misma página. Tonio HTML, Javascript y otros 4 07-03-2007 10:47:30
Error -2147221164 Abriendo desde BDE una base de datos MSAccess olbeup Conexión con bases de datos 0 02-09-2005 18:05:14
Abriendo archivos de cualquier extension desde jBuilder drZeph JAVA 0 20-09-2004 21:14:07
Dos report en una misma página JavierRoca Impresión 1 16-05-2003 17:11:37


La franja horaria es GMT +2. Ahora son las 19:12:59.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi