Ludnica na pijac team
Dobrodošli na forum lnp klana. Ako želite da vidite ceo sadržaj foruma morate se registrovati. Hvala na razumevanju
-------------------------------
Ludnica na pijac, Admin team.


The future is not, where our dream is!
 
HomeFAQSearchMemberlistUsergroupsRegisterLog in
Nova adresa foruma! www.lnp-team.iz.rs
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Last Matches
vs. wG. 14:16
vs. h2o 16:13
vs. NYM 16:0
vs. 4 AR! 32:18
vs. cT 32:19
vs. LoH 16:0
Forum Friends
Baraka Image and video hosting by Rexar
Lune up
lnp ^ Similar
lnp ^ Contrast
lnp ^ MagnifieR
lnp ^ Strong Snoop
lnp ^ /edit
Statistics
We have 81 registered users
The newest registered user is ^^ HiDDeN ^^

Our users have posted a total of 552 messages in 154 subjects
Poll
Social bookmarking
Social bookmarking digg  Social bookmarking delicious  Social bookmarking reddit  Social bookmarking stumbleupon  Social bookmarking slashdot  Social bookmarking yahoo  Social bookmarking google  Social bookmarking blogmarks  Social bookmarking live      

Bookmark and share the address of Ludnica na pijac team on your social bookmarking website

Bookmark and share the address of Ludnica na pijac team on your social bookmarking website

Share | 
 

 PHP za pocetnike [4. DEO]

Go down 
AuthorMessage
MagnifieR
Administrator
Administrator
avatar

Registrovan : 2009-06-05
Postova : 191
Lokacija : Zimbabwe
Points : 3957

PostSubject: PHP za pocetnike [4. DEO]   Sat Jun 06, 2009 6:48 pm

Evo posto je Filip vec rekao nesto osnovno o PHP, ja cu napisati jedan tutorial da upotrebimo jednu variabilu. Posto mi je prvo palo na pamet Redirect, nauciti cemo kako redirectovati korisnike sa jednog sajta na drugog.

DEMO: KLIK ( ovde mozete videti kako sve skupa na kraju izglead )

Variabile:
$kgb-hq // ovde mozete da stavite bilo sta drugo, npr. url, sajt, site, itd..

Znaci primer variabile:
Code:
$kgb-hq="http://www.kgb-hq.com";

A ovde vidite kako cu upotrebiti variabilu:
Code:
<?php
$kgb-hq="http://www.kgb-hq.com";
header("Refresh: 5; url= $kgb-hq");
?>

Dodacemo jos malo HTML-a, da bude text na sredini sajta u vezi redirecta:
Code:
<html>
<title>PHP Redirect Tutorijal</title>
<head>
<body>
<div align="center">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
Za 5 sekundi ce te biti automatski redirectovani na www.kgb-hq.com!
</div>
</body>
</head>
</html>

I sada kad sve skupa spojimo dobijemo:
Code:
<?php
$kgb-hq="http://www.kgb-hq.com";
header("Refresh: 5; url= $kgb-hq");
?>
<html>
<title>PHP Redirect Tutorijal</title>
<head>
<body>
<div align="center">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
Za 5 sekundi ce te biti automatski redirectovani na www.kgb-hq.com!
</div>
</body>
</head>
</html>
Back to top Go down
View user profile
 
PHP za pocetnike [4. DEO]
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Ludnica na pijac team :: Tutorijali za programe i igre-
Jump to:  


Powered By © phpBB | Hosted by Forumotion
All rights reserved | LNP team 2009
Free forum | © phpBB | Free forum support | Contact | Report an abuse | Forumotion.com