Library

From Asterix HTML
Jump to navigation Jump to search

/library is one of the websites I want to see on your subdomain

This is a folder for...

...and anything else that isn't a webpage

Hiding your library

You are supposed to put an index.html file into this folder to protect the privacy of what you have here.

To hide this folder form the Internet, you need an index.html web page here 

I usually just present a blank white canvas to any browser that finds it's way to my /library folders, but you're free to do something different. You might want to say something like....

This is a my private library!  KEEP OUT!

...or put a copy of your main website index.html there, so if anyone clicks on anything, they'll be dropped back down to your main website

index.php

This is the only time I will allow you to have a php web page on your website...

  • index.html, you can have
  • index.php

If you do this. it I will allow you just one single line of php code! This is the simplest do nothing web page that you can write!...

<?php
/* 
 * This is to hide my library
 */
?>

The biggest thing in this file is the comment- and the best thing about php files is that visitors to your website cannot see them! Browsers are literally fooled into believing there is nothing there! ...view the page source to prove this!

All you will see on this page is

Warning

If you place a copy of your main website's index.html into your /library, I suspect you'll find out why it's better to code with something like...

  • href ="/library/myImage.jpg" ...rather than...
  • href ="library/myImage.jpg" ...there is a difference!

This would be a significant improvement in the quality of your code!

Marking

Consistent use of /library (up to 3)

Notes

Main Page | Basic web design | Navigation | Ranking | Support | Asterix Home