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
foward skripta, sto brza

 
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 -> Client-side
View previous topic :: View next topic  
Author Message
Pekx



Joined: 09 Sep 2004
Posts: 559

PostPosted: 15.11.2005 21:55    Post subject: foward skripta, sto brza Add user to your forum ignore list Reply with quote

hvala!

Last edited by Pekx on 12.05.2011 15:54; edited 1 time in total

_________________
mp3hr.com
Back to top
View user's profile Send private message Send e-mail
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 15.11.2005 22:53    Post subject: Add user to your forum ignore list Reply with quote

Kakva je to skripta
Back to top
View user's profile Send private message Visit poster's website
Pekx



Joined: 09 Sep 2004
Posts: 559

PostPosted: 15.11.2005 23:28    Post subject: Add user to your forum ignore list Reply with quote

nasao sam, no ako netko ima neka salje svejedno Wink

npr da ako netko napise link: tralala.com/tu_ne_smijes da ga prebaci u folder tralala.com/tu_smijes Very Happy

možda sam se malcice krivo izracio, rediction sam mislio Razz

inace, evo skripte

Code:
<?php
$URL="link na koji želite redict";
//vrijeme u sec; sljedeci red
//$sek = "3";
//header ("Location: $URL");

?>

<html>
<head>
<title></title>
</head>
<body>


<meta http-equiv="refresh" content="<?=$sek;?>;URL=<?=$URL;?>">
</body>
</html>

_________________
mp3hr.com
Back to top
View user's profile Send private message Send e-mail
Pekx



Joined: 09 Sep 2004
Posts: 559

PostPosted: 15.11.2005 23:40    Post subject: Add user to your forum ignore list Reply with quote

Pekx wrote:
nasao sam, no ako netko ima neka salje svejedno Wink

npr da ako netko napise link: tralala.com/tu_ne_smijes da ga prebaci u folder tralala.com/tu_smijes Very Happy

možda sam se malcice krivo izracio, rediction sam mislio Razz

inace, evo skripte

Code:
<?php
$URL="link na koji želite redict";
//vrijeme u sec; sljedeci red
//$sek = "3";     
//header ("Location: $URL");

?>

<html>
<head>
<title></title>
</head>
<body>


<meta http-equiv="refresh" content="<?=$sek;?>;URL=<?=$URL;?>">
</body>
</html>


zakomentirano je vrijeme jer mi trena instant redict Smile

_________________
mp3hr.com
Back to top
View user's profile Send private message Send e-mail
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 16.11.2005 01:16    Post subject: Add user to your forum ignore list Reply with quote

a da ipak probas ovo? http://corz.org/serv/tricks/htaccess.php

btw sve ovo nije client-side.

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

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

automatska meta redirekcija nije za igranje... use wisely

@nelchee: pa, redirekcija (refresh) se dešava client-side pa ono Confused
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 16.11.2005 16:45    Post subject: Add user to your forum ignore list Reply with quote

pa sve se desava client-side ocito, ali ako pricamo o PHP-u ili Apache-u onda smo navikli o tome pricati tamo...

nego pexx, koji vrag si ti sad napravio? mijesas PHP redirect i meta refresh s time da si PHP zakomentirao tako da ne sluzi nicemu... dovoljno je samo napisati
Code:
<?php header ("Location: http://pexx.com/"); ?>

i gotova prica, nema delay-a

nego Sulien koje su moguce negativne posljedice?

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Pekx



Joined: 09 Sep 2004
Posts: 559

PostPosted: 16.11.2005 23:25    Post subject: Add user to your forum ignore list Reply with quote

@ nel`chee: ma znam, sve je zbrda, zdola Smile
jucer sam bio dosta zbunjen nisam ni gleda sto kopiram, daklem, ova moja skripta su u biti dvije skirpte koje sam na neki glupi nacin beskorisno i ni sam neznam kako ni zašto povezao, iss, tek sad vidim, lol, do bola, idem u zid lupat posto nema onog smajlija. Very Happy
e, da sto se tice htaccessa, nebi se as s tim želio igrati, ma u biti ne da mi se sa tim igrati, ovo mi je jednostavnije Smile

_________________
mp3hr.com
Back to top
View user's profile Send private message Send e-mail
ToDD



Joined: 05 May 2005
Posts: 83
Location: Zagreb

PostPosted: 17.11.2005 11:55    Post subject: Add user to your forum ignore list Reply with quote

lol to nije skripta, to je obična linija php koda Very Happy
Back to top
View user's profile Send private message MSN Messenger
mile



Joined: 10 Sep 2003
Posts: 1327
Location: Jeruzalem

PostPosted: 17.11.2005 14:13    Post subject: Add user to your forum ignore list Reply with quote

ToDD wrote:
lol to nije skripta, to je obična linija php koda Very Happy

da, ali kada na liniju koda dodaš (c) Pero 2005, onda je to skripta Smile
@ nel`chee: Sulien je vjerovatno mislio na svoje negativno iskustvo s meta refreshom i googleom (meni je isto jedan sajt pao na google rezultatima radi meta redirecta, ali barem nije bio izbačen iz indexa..)
Back to top
View user's profile Send private message Visit poster's website
nel`chee



Joined: 08 Jul 2004
Posts: 2087
Location: Rijeka

PostPosted: 17.11.2005 17:48    Post subject: Add user to your forum ignore list Reply with quote

ah, to.. ma dobro, ako se taj folder ni ne treba ucitavati sta te briga za google, jos bolje da ga ne nadje... samo da ne steti siteu na koji se redirecta.

_________________
art & design portfoliofree Photoshop brushes stuffsketchblogfacebook
Back to top
View user's profile Send private message Visit poster's website Twitter profile
Pekx



Joined: 09 Sep 2004
Posts: 559

PostPosted: 19.11.2005 10:37    Post subject: Add user to your forum ignore list Reply with quote

ma nismo si ja i definicije baš tako dobri Very Happy

i ovo sa header locationom mi ne radi, pa sam iskoristio ovo Very Happy
sad kad greško pocnu:

Code:
  <!--
       var URL   = "http://superdobitak.com/portal"       
       var speed = 0
       function reload(){
       location = URL
       }
       setTimeout("reload()",speed);
  //-->


instant action, 0 sekundi kašnjenja Smile
inace, ovo stavljam ovdje jer ce ziher nekome trebati, pa ako ce biti dovoljno pametan da use-a search muke ce mu biti skracene Very Happy

_________________
mp3hr.com
Back to top
View user's profile Send private message Send e-mail
che.UP
mi3.crew


Joined: 07 Sep 2003
Posts: 2320
Location: zagreb

PostPosted: 19.11.2005 16:25    Post subject: Add user to your forum ignore list Reply with quote

i recimo meni se ne bi nikad redirektalo i ugasio bi browser :)

_________________
UP | TypeTester | Accommodations App
Meni u Firefox-u ne radi AJAX
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 -> Client-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