Home Karmen Content Tutorials Links In linked at Hosting Credits

Sheisloved

Hey whats up? Welcome to my Site. There is tons of stuff for you to use and Always remember to give me Credit. This is Also my Blog where I can talk about life, depression, IBS, Tremors and Anxiety, Nerves and mental help. No one is perfect as i struggle with life and dealing with things that I wish no one had. But here I am trying to be Strong. I Struggle But i am me..

Calender

October 2021
04-Allergy Shot
05-Friends bday
11-Allergy shot/Ent Doc
18-Allergy shot
25-Allergy shot
31-Halloween

Vistors

Flag Counter

Who?

The Name is Karmen. I am 39 Years old. I am a Mother of 2 Amazing Children who are my world. I been Single for the past 3 years now. I struggle alot with Depression, Anxiety, Panic Attacks,ibs and ofcourse living with Tremors. Something i really love is Pigs,pugs and hippos. I also love pizza and chocolate but allergic to milk. I can be Shy but yet very outspoken. I am truthful, kind and a heart of gold. I can get along with anyone and very easy to get along with. How ever if you are mean to me or to my family i also can bite back and also be very sarcastic. I love to laugh, be outside and playing with my animals. When bored i am either watching a movie, tv show or playing ACNH..I love to learn new things and be creative and work on my website. I really enjoy creating stuff..:)

cbox

PHP Includes

PHP includes may seem very difficult to understand at first but once you get the hang of it, they will simplify your life like anything ever could! lol! Once you learn PHP including, you can do the following things with your website:
» Make it more organized.
» Change layouts with ease.
» Add cool PHP scripts.
» Add same text/content to many pages with ease.
» Skin your site!
Though skinning is another big thing, which will need more tutorials and lots of patience.

Tutorial

First of all, code a layout for your site with normal HTML like you always do. For startes lets assume you are using a Div-Layers layout, Your typical coding will be something like this:



We now have to divide this HTML code into 2 parts, or more if you want. Open your text editting program, I use notepad. Copy and paste html of the page upto the portion, which defines features which will be common for all pages of your site. For example, in the above page, The code that can be common in all pages of the site will be :



This means, the starting HTML code, including CSS link, top image, the navigation and the the main content position will be same for all the pages on site. Save this file as header.txt or header.php
Start a new document in notepad and copy & paste the rest of HTML code of the page, in the above example it will be:



Save this file as footer.txt or footer.php. Now start a new document in notepad and copy & paste the code below there:



Save this file as index.php. In the code above, change header.php and footer.php to header.txt and footer.txt respectively, if you saved them as .txt files. You need to change the User with the username, folder with the name of folder where all your files are or your subdomain, the header and footer files that is. If you have them in root directory remove the folder from the path. For those who are hosted, you need to ask your host, the username
. For example is the username is bunny, your subdomain is hop, (assuming your files are in the root directory) the code will be something like this:



I hope thats understandable. Upload index.php to your root directory, now go to your site, (http://yoursite.com/index.php) if it shows you the layout exactly the way you coded it, congrats! You just made your first php page!