A really cool php script I found for multiple sites/url mask

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


Joined: 12 Jan 2003
Posts: 137

PostPosted: Thu Aug 14, 2003 4:28 am    Post subject: A really cool php script I found for multiple sites/url mask Reply with quote

this script when typed in your browser like
http://mysite.com/scriptname.php?page=4
and will return the location of the case $site accordingly
to the number of the case its pretty cool and can be modified for
numerous urls... try it out!
Code:

<?
$page = $_GET['page'];
switch ($page) {
case "1":
$site = "http://yoursite.net";
break;
case "2":
$site = "http://yoursite.net";
break;
case "3":
$site = "http://yoursite.net";
break;
case "4":
$site = "http://yoursite.net";
break;
}

include "$site";
?>
Back to top View user's profile Send private message
kodeking
-


Joined: 19 Jun 2003
Posts: 15

PostPosted: Mon Aug 18, 2003 6:49 am    Post subject: Reply with quote

you can also do:
http://yoursite.com/page?site=http://blah.com

Code:

<?
$page = $_GET['page'];
if($page){
include "$page";
}else{
echo "No page requested";
}
?>


I guess it wouldnt be "masking" though
________
MARIJUANA NEWS
________
Gift Cards


Last edited by kodeking on Sat Feb 19, 2011 6:35 pm; edited 2 times in total
Back to top View user's profile Send private message
os17fan
-


Joined: 21 Mar 2003
Posts: 531
Location: USA

PostPosted: Mon Aug 18, 2003 4:51 pm    Post subject: Reply with quote

I think Blue dogs script is more easier to setup.
_________________
This web server is the best !
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Monne
-


Joined: 11 May 2003
Posts: 3

PostPosted: Sat Aug 23, 2003 4:53 pm    Post subject: Reply with quote

Not working;/
Back to top View user's profile Send private message
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