Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 07-16-2009, 08:34 PM   #1
Warrior Member
 
Join Date: Jan 2009
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Default php code

i have been trying to get this code working for me

[?php
$url =
"http://www.somedomain.com";
header("Location: $url");
exit();
?]

(naturally you change the 2 [square brackets] to <angle brackets>



but it does not work correctly i must be doing something wrong because when i click the link it just says like

http://www.website.com/://otherwebsite.com

if somebody knows what i´m doing wrong then it would be good to know thanks all
falkinn is online now   Reply With Quote
Old 07-16-2009, 09:22 PM   #2
Chick Magnet
 
BurgerBoy's Avatar
 
Join Date: May 2009
Location: Kentucky, USA
Posts: 193
Thanks: 18
Thanked 22 Times in 19 Posts
Default Re: php code

All you need is:

<?php header( 'Location: http://www.YourLink' ) ; ?>

Do Not have anything else on the page and name the page extention .php.

Example: redirect.php

BurgerBoy is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
code, php

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 12:28 AM.