Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-01-2003, 04:44 PM   #1
HunkyLuke
Virgin by request ;)
 
Industry Role:
Join Date: Feb 2002
Posts: 1,924
php experts, I need your help

Hi, I need to know how to do this:

traffic sent to this url:
http://domain.com/index.php?10001
will display index1.php

traffic sent to this url:
http://domain.com/index.php?10002
will display index2.php

traffic sent to all other numbers, eg, http://domain.com/index.php?20001
will display index.php (or index3.php if index.php is not possible)

I am sure this is totally easy to do but I need help,

Thanks in advance,

Luke
HunkyLuke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2003, 04:53 PM   #2
aztecvision
Confirmed User
 
Join Date: Feb 2003
Posts: 979
This should work..

if($QUERY_STRING =(remove this space)= 10001)
{
include($DOCUMENT_ROOT/includes/index1.php);
}else if($QUERY_STRING =(remove this space)= 10002)
{
include($DOCUMENT_ROOT/includes/index2.php);
}else{
include($DOCUMENT_ROOT/includes/index3.php);
}


Add this to the inside the body tag of index.html
Then make sure that /includes/index1.php index2.php & index3.php exist.. These 3 files should only have the body content and not any html/head/body tags what so ever..

Last edited by aztecvision; 05-01-2003 at 04:56 PM..
aztecvision is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-01-2003, 04:55 PM   #3
HunkyLuke
Virgin by request ;)
 
Industry Role:
Join Date: Feb 2002
Posts: 1,924
Bloody kewl!!! I love php, I wish I knew it a bit more!

Thanks aztecvision, that was exactly what I was looking for.

Cheers!

Luke
HunkyLuke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.