help me test my subdomain script.

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  

does forums.node1.tk take you to my forums page?
yes
62%
 62%  [ 5 ]
no
25%
 25%  [ 2 ]
other, please explain
12%
 12%  [ 1 ]
Total Votes : 8

Author Message
Techno_Mage
-


Joined: 09 May 2004
Posts: 57

PostPosted: Mon May 17, 2004 3:16 am    Post subject: help me test my subdomain script. Reply with quote

I'm testing a script right now that allows me to use forums.node1.tk and I've found out it works for some people and not for others so I'd like to get an overall view of how many people it works for and how many it doesn't...

so if you click this link it should take you to my forums...

http://forums.node1.tk/

if it doesn't work for you does it give you an error or take you to my homepage...

http://node1.tk/

Thanks for helping me test this.
_________________
Regards,
TechnoMage

www.arenax.tk

ut2004://66.46.116.232:8888
Unreal Tournament 2004 RPG DM server.


Last edited by Techno_Mage on Mon May 17, 2004 3:54 am; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon May 17, 2004 3:25 am    Post subject: Reply with quote

Quote:
Notice: Undefined index: HTTP_REFERER in C:\Program Files\Abyss Web Server\htdocs\index.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Abyss Web Server\htdocs\index.php:23) in C:\Program Files\Abyss Web Server\htdocs\index.php on line 43


But you knew that...
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Techno_Mage
-


Joined: 09 May 2004
Posts: 57

PostPosted: Mon May 17, 2004 3:53 am    Post subject: Reply with quote

so does that error mean anything to you? does it give any clues as to what's wrong?

here's line 23...

Code:
if ($_SERVER['HTTP_REFERER'] == "http://forums.node1.tk/") {


hey, nice site iNaNimAtE I like the layout and stuff... I browsed around a little..

oh, one other thing... does node1.tk work for you and take you to my homepage?
_________________
Regards,
TechnoMage

www.arenax.tk

ut2004://66.46.116.232:8888
Unreal Tournament 2004 RPG DM server.
Back to top View user's profile Send private message Visit poster's website
eznetlinks
-


Joined: 27 Sep 2003
Posts: 144

PostPosted: Mon May 17, 2004 4:14 am    Post subject: Reply with quote

add this after <?

ini_set("display_errors", 0);

that will take care of the error on line 23
Back to top View user's profile Send private message Visit poster's website
Techno_Mage
-


Joined: 09 May 2004
Posts: 57

PostPosted: Mon May 17, 2004 4:37 am    Post subject: Reply with quote

like this?

Code:
<?php

ini_set("display_errors", 0);

/*
Bluedog's Multiple Domain PHP Script

This script was created to help Abyss Web Server users so that they could host more than one site using
different domains and so I made it easier to program this script for their domains by creating a easy to use
site creator that can insert new domains instantly after hitting Submit Me!. Enjoy the script!

*/

//get domain entered in browser
if ($_SERVER['HTTP_REFERER'] == "http://forums.node1.tk/") {

//forward to appropriate page
header("Location : /forums");
exit;

}
//get domain entered in browser
if ($_SERVER['HTTP_HOST'] == "") {

//forward to appropriate page
header("Location : /");
exit;

}
//end duplicating, insert below.

//else show Main Page
else {

header("Location : /main.php");
exit;
}

?>



is that the right place? if so, does it work now?
_________________
Regards,
TechnoMage

www.arenax.tk

ut2004://66.46.116.232:8888
Unreal Tournament 2004 RPG DM server.
Back to top View user's profile Send private message Visit poster's website
stord2000
-


Joined: 13 May 2004
Posts: 4

PostPosted: Mon May 17, 2004 5:13 am    Post subject: homepage Reply with quote

It took me to your home page so something is working
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon May 17, 2004 5:17 am    Post subject: Reply with quote

Both forums.node1.tk and node1.tk take me to your front page.

And thank you for the website compliment.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Techno_Mage
-


Joined: 09 May 2004
Posts: 57

PostPosted: Mon May 17, 2004 5:19 am    Post subject: Reply with quote

iNaNimAtE wrote:
Both forums.node1.tk and node1.tk take me to your front page.

And thank you for the website compliment.


so I take it your not seeing the error anymore?
_________________
Regards,
TechnoMage

www.arenax.tk

ut2004://66.46.116.232:8888
Unreal Tournament 2004 RPG DM server.
Back to top View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon May 17, 2004 5:21 am    Post subject: Reply with quote

No, I do not see the error, however I do not get redirected. But I would still call it an improvement.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon May 17, 2004 5:34 am    Post subject: Reply with quote

I get redirected to different areas of your
website , forum goes to forum and home
page goes to your home page , it works.

Note: I tested this in
Internet Explorer 6
Back to top View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon May 17, 2004 6:16 am    Post subject: Reply with quote

I tried in IE6 and no luck.

It seems that I am the only person who does not get redirected, so I don't think you need to worry about it. It must be some odd configuration on my end.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP 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 phpBB Group