Longreen. aka green88. 14 August 1988. born in Germany. 52 siblings. single. likes drawing on Paint. music. DeviantART. mushrooms pizza. 3D. Final Fantasy. motorcycles. Yahoo. Msn. friends. More?
Add to Technorati Favorites This blog is NOT about a real person, but a character RPG'ed by Luana of Honey-Babe.net Powered by  MyPagerank.Net
Bebo/princecar88
Friendster/longreen88
LJ/longreen
Live/green88
MySpace/longreen88
Tumblr/green-leaves
Vox/longreen
Xanga/longreen
Add me!



   PHP Includes Tutorial  

Home » Goodies » PHP Includes Tutorial

This will explain you how to use PHP includes on your site :D It’s extremely easy to do, and makes updating super
fast, because you just have to change 1 file to modify the whole site ^_^

Step 1 Make a div layout. Use your style, your CSS’s, etc. Your layout must be complete to proceed (coded). Name it index.html
Step 2 Select all the navigation part of the HTML code and save it in a new file, which you shall call sidebar.php or header.php
Step 3 Delete the part you saved from the original HTML file and replace it with this code: CLICK
Step 4 Save the HTML file as PHP (change extension from index.html to index.php)
Step 5 Upload to your own server and test it. If it works, you just made your first page PHP included! :D
Step 6 Use the index.php file as a model to do more pages. The navigation will be 1 file only so it’s easy to update ;D

Any suggestions on how to improve this tutorial? Email me at: green@princecar.net






 

Welcome
Welcome to Princecar.net This is Longreen's personal blog, it's about his life, his dreams, his heart, his hobbies. Please show some respect. If you want to leave me a message, just use the comments form or the tag, okay? Mwah!

Subscribe? :3

Navigation


Friends

Bookmarks

Comments
  • Cierrah: Hey! What part of Germany are you...
  • Tin: Hey Longreen! Nice to hear again from you!...
  • Burraco: you’re not the only one alone in...
  • iway: that’s great and a good idea....
  • Burraco: Io anche sono così timido che spesso...

  • Twitter
    • PrinceCar.net is back to PR1 :D yay!! 2010-01-06
    • my poor Twitter >.< I so left it alone these last months. gah! 2009-03-27
    • Posting a blog about my love life *sigh* the sadder subject in my life course :( 2008-10-25
    • More updates...

    Posting tweet...

    Powered by Twitter Tools.


    Tag Me!

    Wishlist
  • I'm saving up to buy a movado green watch, and I hope I shall do it x3
  • A new pair of Levis jeans for my human mode
  • Get married!!!


  • archives




    Credits
    © Blog: Longreen
    © Layout: K A R E N
    Ribbons: Lovecandied
    WP | CP

    ss_blog_claim=a9faa0e41aa995500f5ebd92bb5cfcbc