Uhh so who's right? Calon or Source?
Printable View
Uhh so who's right? Calon or Source?
No use
header("location:http://google.com");
capitals don't go well in coding IMO unless its camelcase. Like fucntion
superCoolFunction
But its personal preference, I'm just fussy and been awkward.
I'm not talking about capitalization, I'm talking about specifying a var before header output
Its nothing too complex
You can do anything you want above the header thats not an output to a browser. This means no other headers, echoing things out etc...PHP Code:
$var = "ANYTHING YOU WANT";
header("location{$var}");
Mhmm i believe its Location :) I've always used...
But this thread gave me second thoughts so i read the bible...PHP Code:<?php
header ("Location: http://google.com/");
?>
http://uk2.php.net/header
its Location
Correct amondo ;)
(Y) I don't see why you all need to give the guy 50 answers, one is good enough and there both right!
I never indent in browsers, because when I use Tab it leaves the textbox. Already explained from other threads ;), I usually indent like this: http://forum.sa-mp.com/index.php?topic=61893.0
We're both right, location:url or Location: url works too. location:url is just a messier way and Source explained it better.Quote:
Uhh so who's right? Calon or Source?
Okay I get it already
Someone close this.