Ciao a tutti
Non riesco a vedere:
echo $_SERVER['HTTP_REFERER'];
forse perchè non è abilitata.
Come faccio ad abilitarla ?
php.ini è impostato così:
session.referer_check =
Grazie
Ciao![]()
Ciao a tutti
Non riesco a vedere:
echo $_SERVER['HTTP_REFERER'];
forse perchè non è abilitata.
Come faccio ad abilitarla ?
php.ini è impostato così:
session.referer_check =
Grazie
Ciao![]()
Da manuale:
Prova ad utilizzare REQUEST_URI in alternativa.codice:The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
$_SERVER
"Mai discutere con un idiota. Ti trascina al suo livello e ti batte con l'esperienza." (Oscar Wilde)
Vorrei usarla anche se non è affidabile.
e per "REQUEST_URI" mi puoi fare un esempio di utilizzo ?
Grazie
![]()
Nel link che ti ho postato ci sono tutti gli esempi che vuoi...perchè gli hai dato un'occhiata vero?!?!Originariamente inviato da gianniwebnet
Vorrei usarla anche se non è affidabile.
e per "REQUEST_URI" mi puoi fare un esempio di utilizzo ?
Grazie
![]()
"Mai discutere con un idiota. Ti trascina al suo livello e ti batte con l'esperienza." (Oscar Wilde)
e vero
ho guardato ma non ho approfondito.
mi sono fermato qui:
'REQUEST_URI'
The URI which was given in order to access this page; for instance, '/index.html'.
perchè non capivo.
Grazie.
Sto andando in confusione.
Questo codice:
dovrebbe visualizzare il sito di provenienza del visitatore.codice:<?php echo $_SERVER['HTTP_REFERER'];?>
Siccome non visualizza niente e nemmeno da un errore, ho
cercato di capire ed "in giro" ho letto dell'eventualità che
"$_SERVER['HTTP_REFERER']" non fosse abilitata.
Ora, facendo finta che è disabilitata come faccio ad abilitarla ???
Grazie
![]()
Eppure da manuale sembra tutto molto chiaro. Non c'è NULLA da settare nel php.iniOriginariamente inviato da satifal
Da manuale:
Prova ad utilizzare REQUEST_URI in alternativa.codice:The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
$_SERVER
Perchè il campo HTTP_REFERER nell'array $_SERVER sia valorizzato occorre giungere alla pagina che lo utilizza tramite un link oppure un submit.
Se digiti la pagina direttamente sulla barra degli indirizzi tale campo è VUOTO.![]()
"Mai discutere con un idiota. Ti trascina al suo livello e ti batte con l'esperienza." (Oscar Wilde)
P E R D O N A T E M I![]()
Nel mondo l'intelligenza è costante, ma la popolazione in aumento.
Io sono uno di quelli che contribuisce all'aumento della popolazione!!!
[RISOLTO]
Grazie.
Ciao
![]()