• Dedicated Hosting
  • Fast Dedicated Servers - Xeon
  • Dedicated Server Packages
  • Cheap Dedicated Servers
  • Selecting the right Budget Server
  • Virtual Private Servers
  • VPS Hosting Review (Top 3)
  • Windows VPS Hosting
  • VPS Bandwidth
  • More info on Win VPS
  • Virtual Server Hosting Info
  • Shared Web Hosting
  • Top Web Hosting Reviews (Top 3)
  • Shared Web Hosting
  • Green Web Hosting
  • Business Web Hosting
  • Shared Server Hosting Matrix
  • FreeBSD Topics
  • Access our FreeBSD Forums
  • Home
  • How To Install FreeBSD
  • Installing Webmin
  • Installing ISPConfig
  • How To Install Ports/PHP/Perl
  • How To Install Apache
  • Software Porting
  • Dedicated Server Hardware Config
  • FreeBSD Security
  • Benefits Installing FreeBSD
  • IT Information Menu
  • Green IT
  • What is Green Hosting
  • Benefits of Green IT
  • Server Control Panel
  • The Archives
  • Web Hosting Comparison
  • Server OS Comparison
  • MySQL, SQL, and PostgreSQL
  • Pros and cons of Server Packages
  • Hosting Services
  • Server Software Configuration
  • Server Hardware Questions
  • Reasons for your own server
  • Video Card Drivers
  • Cheap Vs High Performance Servers
  • What is a Virtual Server?
  • Server Hardware
  • Used servers
  • Buy Used Servers
  • 1U Servers
  • Server Memory
  • 667 FB DIMM
  • Managed Hosting Info
  • Managed Web Hosting
  • Managed Web Hosting Services
  • Managed Web Hosting Pros
  • Managed Dedicated Hosting
  • Small Business Hosting
  • Managed Web Hosting Cons
  • Website Related Info.
  • How to Build a Website Overview
  • Free Web Hosting Sites
  • Online Business Help
  • Protecting your Brand Online
  • Help with Online Reputation
header pictures for dedicated hosting services

FreeBSD Hosting and Dedicated Hosting Services

FreeBSD forums cover everything from setting up FreeBSD on your computer or webserver to common questions related to system hardware and software tweaks.

This article is on:

PHP web pages for FreeBSD Dedicated Servers


Hosting websites on your FreeBSD dedicated server is easy and when combined with an apache web server and an install of PHP. With the power of PHP you can create dynamic web pages that can react based on web surfer behavior. So lets say you have an ad campaign and have paid for a banner ad from xyz site, you know the demographics of the web surfer that visits the site are hardcore Internet gamers but your website sells general products, with Internet games being one of them. (this script will work regardless of if you are using a dedicated hosting services or have a virtual server).

You can write a simple PHP script that checks the link and based on what is in the link displays the appropriate web content.

In this example the link will be to your site say yourdomain.com?totalgamers

You can then write a PHP script and name it index.php which will check your URL on your websited hosted on your FreeBSD server for any additional extensions in this case "?totalgamers" the loads the appropriate content.

 

<?php

 

if ( $url == 'http://yourdomain.com/index.php?totalgamers' ) {
include "specialinludeforgamers.php";
} else {
include "regularcontent.php";
}

echo $url;
?>

 

Looking for our FreeBSD Forums? We have moved them off our main page,just follow the link to our FreeBSD Forums page.

Guests Visit the FreeBSD Forums  •  Login to the FreeBSD Forums  •  Register for FREE
    |
Google
Custom Search


Copyright © 2009,2010,2011,2012,2013,2014,2015,2016,2017, WEBSERVER CONSUMER GUIDE

Privacy Policy

Please note:
(1) FreeBSD is a registered trademark of The FreeBSD Foundation.
(2) WEBSERVER CONSUMER GUIDE is in no way affiliated with The FreeBSD Foundation