Easy redict code in PHP? Created 18 years ago2005-06-26 17:29:35 UTC by Madcow Madcow

Created 18 years ago2005-06-26 17:29:35 UTC by Madcow Madcow

Posted 18 years ago2005-06-26 17:29:35 UTC Post #117325
I need a redirect code in PHP for my .com domain.
I need it to redict me to http://roma55.mine.nu/julian/index.asp
I don't know anything about PHP, but I know that this site is in PHP, so, I ask,, does anyone know how to redict the browser to that address using php?
ASP is not enabled, but that would be response.redirect("blahblahblah")
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-06-26 18:52:49 UTC Post #117334
Prhaps a 'tarded question, but if the site in question allows PHP, then why redirect? Its obviously not some freewebs/geocities thing, otherwise, normal redirectage should work. Is .ASP recognised before .PHP? btw?
Posted 18 years ago2005-06-26 19:02:14 UTC Post #117338
<?php
header("Location: http://roma55.mine.nu/julian/index.asp");
exit;
?>

Have fun :)
m0p m0pIllogical.
Posted 18 years ago2005-06-26 19:08:56 UTC Post #117339
Thanks masterofpuppets! :D
Mephs, you wondered if you had PHP, you also have ASP, or did I get it wrong?
well, somehow, they have disabled asp for users that run on easy mode.
but PHP4 is enabled!

I need to direct the page to my real page, I don't want to remake everything for PHP.. urgh..
I don't even know what PHP stands for! lol I don't know anything about PHP, well, yes, I know one thing, the thing masterofpuppets just told me,, ^^

Masterofpupptes:
#####################################
So that code, will in the same window, open my real page?
#####################################
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-06-26 19:16:56 UTC Post #117343
Same window, obviously.

PHP = "PHP Hypertext Preprocessor", by the way.
m0p m0pIllogical.
Posted 18 years ago2005-06-26 19:18:12 UTC Post #117344
Aww, just noticed a typo in my code!
<?php
header("Location: http://roma55.mine.nu/julian/index.asp");
exit;
?>
Use that instead.
m0p m0pIllogical.
Posted 18 years ago2005-06-26 19:19:22 UTC Post #117345
Damn, what the hell, stupid TWHL adds a > before the ;! Just use that and remove the >;, then put a ; after the header line.
m0p m0pIllogical.
Posted 18 years ago2005-06-26 19:19:37 UTC Post #117346
Ok, thanks again, m0p! ;)
I'll make a page with that code in it as soon as I get the page FTP info! :D
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-06-26 19:20:11 UTC Post #117347
Oh, and by the way, the address will be: www.hl-tco.com :D
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-06-26 20:02:45 UTC Post #117352
.coms are expensive, mind you.
Posted 18 years ago2005-06-26 20:35:51 UTC Post #117354
I dont even know what php is used for... :
Posted 18 years ago2005-06-27 04:04:02 UTC Post #117374
.coms are expensive, mind you.
Yeah, like 1 euro a month!
Posted 18 years ago2005-06-27 07:19:02 UTC Post #117419
lol, I registrated at a very cheap place..
start bill, 30 euro,
To pay every month, 0,5 euro
To pay every year, 10 euro.

Almost nothing, just at the start!
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-06-27 07:20:41 UTC Post #117421
Masterofpuppets, is this how the code should look?
PHP redict code
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-06-27 08:57:00 UTC Post #117448
Yup that's correct. Stupid TWHL adds a > before the first ;.
m0p m0pIllogical.
Posted 18 years ago2005-06-27 09:04:23 UTC Post #117451
Weird! Well, thanks! :D
I get all the FTP info tomorrow, so I think the site will work then! :D
Madcow MadcowSpy zappin my udder
Posted 18 years ago2005-06-29 17:30:01 UTC Post #117793
It's up, fixed, online and blah blah blah..
www.hl-tco.com!
If you write http://hl-tco.com it doesn't work,, I don't know why, lol,, but who cares? The standard works! :D

THE COMBINE OVERWATCH (now with replie system on the forums)
Madcow MadcowSpy zappin my udder
You must be logged in to post a response.