Vile Posted January 20, 2012 Share Posted January 20, 2012 (edited) You can just use require('file.htm'); inside of an index.php here's my setup: index.php: <?php $hhost = $_SERVER['HTTP_HOST']; if (strstr($hhost, "facebook.com")) require('facebook.htm'); elseif (strstr($hhost, "twitter.com")) require('twitter.htm'); ?> Then it's just a matter of modifying the htm files to load the css/image files from ./twitterfiles/ subfolders or what have you. It makes it more clean to have the files in subfolders and to not have to rely on senseless redirecting. The referrer page will still be held in the HTTP_HOST environment variable. (Of course this is just a hypothetical, no one would really want to use a jasager with facebook.com or twitter.com, that's just silly) Edited January 20, 2012 by Vile Quote Link to comment Share on other sites More sharing options...
diggler Posted January 20, 2012 Share Posted January 20, 2012 why is that silly? You can just use require('file.htm'); inside of an index.php here's my setup: index.php: <?php $hhost = $_SERVER['HTTP_HOST']; if (strstr($hhost, "facebook.com")) require('facebook.htm'); elseif (strstr($hhost, "twitter.com")) require('twitter.htm'); ?> Then it's just a matter of modifying the htm files to load the css/image files from ./twitterfiles/ subfolders or what have you. It makes it more clean to have the files in subfolders and to not have to rely on senseless redirecting. The referrer page will still be held in the HTTP_HOST environment variable. (Of course this is just a hypothetical, no one would really want to use a jasager with facebook.com or twitter.com, that's just silly) Quote Link to comment Share on other sites More sharing options...
Vile Posted January 20, 2012 Author Share Posted January 20, 2012 That was a disclaimer / joke. Quote Link to comment Share on other sites More sharing options...
Darren Kitchen Posted January 22, 2012 Share Posted January 22, 2012 Nice! Of course. Thanks :) Quote Link to comment Share on other sites More sharing options...
0xPHK Posted January 26, 2012 Share Posted January 26, 2012 @Vile: Thanks for the tip, will try it this weekend... ...as well as playing with spt to see if it can work with a fon 2202 cheers phk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.