Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building Money Sites the Fast and Furious Way
#5
"Includes", PHP and HTML

This simple method will allow us to update a single file and have the updates take place across all the pages on your site. For example, you can add a "footer" to every page on your site and update this single file to update the footer on all pages on your site.

There are html and php versions of both templates. Don't be afraid, they are the same thing. You can edit them with either/or a text editor and a WYSIWYG EDITOR. I suggest you use both, as both have strong advantages.

You can actually rename Page.php to Page.html and work on it, then change it back to .php if your editor won't work with .php files. They are the exact same things, only with different file extensions.

The difference is once you upload them to your website, the .php files get more "power", just because they are .php. The .php tells your host that it may have to go to work when someone visits the page. The .php files will take slightly longer to load, but not by much with what we're using them for. PHP pages also give you many more options in the future.

Your web host is set up to run php scripts. Your home computer very likely isn't. So even very simple php things propably won't work on your PC. So don't be surprise if the pages look totally different when viewed on your PC compared to on your host.

We will use .php pages so we can use "php includes". This function allows us to create a file, like with a bunch of navigation links, and have php insert it into as many pages as we want. But it only works after we upload our pages to our host. On our own computer we get nothing. Smile

Here's how we'll use it. There's a file called footer.php. I've added some links to various legal pages like TOS, etc. By adding a "php include", these links will be included on every page we make and if we ever want to change the footer info we just change the footer.php file and it will update across all the pages that contain the footer include, whether it's one page or one million pages.

Here's the html code in the footer.php file:
Code:
<p class="w3-small"><center>
<a href="TOS.php" target="_new">TOS</a>  |  <a href="Contact.php" target="_new">Contact</a>  |  <a href="AffiliateDisclosure.php" target="_new">Affiliate Disclosure</a>  |  <a href="DMCA.php" target="_new">DMCA Copyright Notice</a>  |  <a href="Spam.php" target="_new">Anti Spam Policy</a>   |  <a href="Privacy.php" target="_new">Privacy Policy</a>  |  <a href="Earnings.php" target="_new">Earnings Disclaimer</a>
</center>
Now all you have to do is tell a page to "include" this footer.php file and you can update footer.php anytime you need to update all the pages that use the include.


Both php templates have the footer include tag:
Code:
<?php include 'footer.php';?>

The 2 column .php template also has this include:
Code:
<?php include 'Right-Column-Include.php';?>
You can put whatever you want in these files, just be careful with formatting.

You can remove these includes or add additional files of your own. You don't want to use too many though, as they will slow down your server. But one or two strategically used are a good trade-off IMO.
   
Enjoy Generous Commissions up to 60%, find ready-to-use swipe files and more with
The Pheeds Kings and Queens of Content VIP Club affiliate program.

Click here to your affiliate link and get started now.

 
Like Reply


Messages In This Thread
What and Why W3.CSS - by Kurt - 03-21-2022, 05:53 AM
RE: Building Money Sites the Fast and Furious Way - by Kurt - 03-21-2022, 06:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Check out all these AI text to art sites Kurt 0 2516 08-13-2022, 06:05 PM
Last Post: Kurt
  How to find folks that want to make money online w/o searching for make money online Kurt 0 2126 06-02-2022, 12:06 AM
Last Post: Kurt
  Two very effective and free long term link building strategies Kurt 1 2301 04-26-2022, 02:52 AM
Last Post: Kurt
  How to start a business with little or no money Kurt 0 1310 04-22-2022, 01:19 AM
Last Post: Kurt
  I hate spending other folks' money but pay for this HTML editor Kurt 0 1557 03-24-2022, 05:18 PM
Last Post: Kurt
  Don't choose keywords. Let keywords choose you or How to REALLY make money with SEO Kurt 0 2152 09-25-2021, 05:03 AM
Last Post: Kurt
  A short list of list sites Kurt 5 8387 08-16-2021, 04:39 AM
Last Post: Kurt
  How to make money aswering questions... Kurt 1 3452 07-10-2021, 01:29 AM
Last Post: Kurt
  What do they do with your money? Kurt 1 3899 03-18-2021, 11:41 PM
Last Post: 10x
  A Good intro to the Skyscraper Technique for Building Links Kurt 0 2999 02-04-2021, 12:26 AM
Last Post: Kurt

Forum Jump: