Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [Php] function redirect
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Drake83
Fan di Splinter

User info:
Registered: Nov 2003
Posts: 1631 (0.20 al dì)
Location: Garbagnate milanese
Corso: Tutto finito
Anno:
Time Online: 108 Days, 5:46:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[Php] function redirect

Ciao! Durante lo svolgimento del codice mi sono trovato nella situazione in cui ho la necessità di forzare un header per dirottare l'andamento della navigazione. In sostanza faccio un " header(location:$url) ". Dato che l'$url non è fisso ma dipende da dove si è prima di giungere a quella pagina in cui forzo l'header mi chiedevo se esiste in php una funzione o una variabile globale che tiene traccia della pagina precedentemente caricata.

Mi sapete illuminare?

tnx :D

__________________
"io non sono come gli altri Robin Hood, io non ballo coi lupi"
"ogni mattina come narciso si specchia nel ruscello retrovisore", "ci sono mille modi per chiamare dio...dio,allha,adta,arauffa,crisma..afjasf...tanto non ti risponde"

Corrado Guzzanti è il mio Dio.
Roberto Saviano eroe nazionale.

29-10-2005 11:07
Click Here to See the Profile for Drake83 Click Here to See the Blog of Drake83 Click here to Send Drake83 a Private Message Find more posts by Drake83 Add Drake83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.52 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non so se ho capito il tuo problema, ma prova a dare un'occhiata sul php.net per "getenv" e più precisamente per getenv("HTTP_REFERER")

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

29-10-2005 11:59
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Drake83
Fan di Splinter

User info:
Registered: Nov 2003
Posts: 1631 (0.20 al dì)
Location: Garbagnate milanese
Corso: Tutto finito
Anno:
Time Online: 108 Days, 5:46:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by DeepBlue
Non so se ho capito il tuo problema, ma prova a dare un'occhiata sul php.net per "getenv" e più precisamente per getenv("HTTP_REFERER")


PERFETTO! HTTP_REFERER è la var di abiente che tiene traccia della pagina precedentemente selezionata e la funzione getenv ne restituisce il valore!

GRAZIE :D!

__________________
"io non sono come gli altri Robin Hood, io non ballo coi lupi"
"ogni mattina come narciso si specchia nel ruscello retrovisore", "ci sono mille modi per chiamare dio...dio,allha,adta,arauffa,crisma..afjasf...tanto non ti risponde"

Corrado Guzzanti è il mio Dio.
Roberto Saviano eroe nazionale.

29-10-2005 12:28
Click Here to See the Profile for Drake83 Click Here to See the Blog of Drake83 Click here to Send Drake83 a Private Message Find more posts by Drake83 Add Drake83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Juventina
@Dublin

User info:
Registered: Dec 2001
Posts: 3334 (0.38 al dì)
Location: Trezzano s/N
Corso: specialistica informatica
Anno: 4 + 3 :/
Time Online: 44 Days, 15:17:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by DeepBlue
Non so se ho capito il tuo problema, ma prova a dare un'occhiata sul php.net per "getenv" e più precisamente per getenv("HTTP_REFERER")


ah ;) io di solito in queste situazioni mi porto dietro una bella variabile che mi dice da dove arrivo :D...

__________________
Don't be evil ;)

29-10-2005 15:29
Click Here to See the Profile for Juventina Click here to Send Juventina a Private Message Find more posts by Juventina Add Juventina to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Drake83
Fan di Splinter

User info:
Registered: Nov 2003
Posts: 1631 (0.20 al dì)
Location: Garbagnate milanese
Corso: Tutto finito
Anno:
Time Online: 108 Days, 5:46:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Juventina
ah ;) io di solito in queste situazioni mi porto dietro una bella variabile che mi dice da dove arrivo :D...


eh anche io ma così è mooolto + comodo :)

__________________
"io non sono come gli altri Robin Hood, io non ballo coi lupi"
"ogni mattina come narciso si specchia nel ruscello retrovisore", "ci sono mille modi per chiamare dio...dio,allha,adta,arauffa,crisma..afjasf...tanto non ti risponde"

Corrado Guzzanti è il mio Dio.
Roberto Saviano eroe nazionale.

29-10-2005 15:57
Click Here to See the Profile for Drake83 Click Here to See the Blog of Drake83 Click here to Send Drake83 a Private Message Find more posts by Drake83 Add Drake83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 22:11.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.070 seconds (67.22% PHP - 32.78% MySQL) con 23 query.