Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
php i ie: Location ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
Tompa



Joined: 14 Oct 2004
Posts: 64
Location: Prudnice

PostPosted: 06.07.2006 10:18    Post subject: php i ie: Location ? Add user to your forum ignore list Reply with quote

hm, ne znam gdje grijesim sto se tice internet explorera:

p1.php
---------
Code:
   <a href="p2a.php">davidimo</a>


p2a.php
---------
Code:
<?php
header ("Location: p1.php");
?>


u ff radi tj. vrati se na p1, ali u IEu ne bude nista, tj. prazno.
hm....
Back to top
View user's profile Send private message Visit poster's website
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 06.07.2006 10:41    Post subject: Add user to your forum ignore list Reply with quote

Nisi stavio čitav URL, probaj sa:

Code:
<?php
header ("Location: http://www.domena.com/p1.php");
?>
Back to top
View user's profile Send private message Visit poster's website
Tompa



Joined: 14 Oct 2004
Posts: 64
Location: Prudnice

PostPosted: 06.07.2006 11:32    Post subject: Add user to your forum ignore list Reply with quote

gog wrote:
Nisi stavio čitav URL, probaj sa:


hm jesam, no sve je ostalo isto[/quote]
Back to top
View user's profile Send private message Visit poster's website
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 06.07.2006 15:53    Post subject: Re: php i ie: Location ? Add user to your forum ignore list Reply with quote

Tompa wrote:
hm, ne znam gdje grijesim sto se tice internet explorera:

p1.php
---------
Code:
   <a href="p2a.php">davidimo</a>


p2a.php
---------
Code:
<?php
header ("Location: p1.php");
?>


u ff radi tj. vrati se na p1, ali u IEu ne bude nista, tj. prazno.
hm....

probaj staviti die(); iza header

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 06.07.2006 22:36    Post subject: Add user to your forum ignore list Reply with quote

probaj prije toga poslat "302 found" ako je to semantički korektno u tvom slučaju

Tompa wrote:
gog wrote:
Nisi stavio čitav URL, probaj sa:

hm jesam, no sve je ostalo isto

svejedno, za neke vrste redirectova bolje koristi apsolutne URL-ove (za 301 je to po speckama)

@car: kako će to pomoći? Confused
Back to top
View user's profile Send private message Send e-mail Visit poster's website
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 07.07.2006 00:47    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
@car: kako će to pomoći? Confused

znam da to koristim posvuda, pa sam pomislio da bi moglo pomoci.

samo sad sam pogledao i prisjetio se zasto je to - da ne izvrsava daljnji kôd uopce.

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 07.07.2006 15:15    Post subject: Add user to your forum ignore list Reply with quote

Da al nema daljnjeg koda...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 07.07.2006 16:30    Post subject: Add user to your forum ignore list Reply with quote

Sulien wrote:
Da al nema daljnjeg koda...

ma znam, nisam se odma sjetio zasto to radim (tj.mozda zbog nekog buga u IE-u itd..) pa ti kazem da sam to kasnije se prisjetio.

neznam za vas, meni kad nesto ne radi isprobavam svakave gluposti, koje nekad nisu ni logicne, ali cesto upale ili me bar dovedu korak blize rjesenju..

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 07.07.2006 17:22    Post subject: Add user to your forum ignore list Reply with quote

Hm sad sam pročitao na http://hr.php.net/header da je Location specijalan header (barem za PHP) koji automatski namjesti 302! Nisam to znao Surprised

Onda fakat ne znam što je. Apsolutni URL skupa sa 302 mora radit...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Gibbo



Joined: 26 Jul 2006
Posts: 17
Location: localhost

PostPosted: 29.08.2006 23:15    Post subject: Add user to your forum ignore list Reply with quote

Probaj ovak
Code:

<?php
header ("Location: /p1.php");
?>
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group