Advertise on Vortex
Advertise on Vortex


Adobe Photoshop 7

Paint Shop Pro 7

3D Tutorials

Scripts & Coding

Other
PHP - PHP Includes
  • Uses: PHP
  • Skill Level: Medium
  • Credit: Allie
  • Final Product: Included php pages on one page

    -------------------------------------------------------------------------------------

  • PHP includes are a nice way of organizing your site. I use B2 for my blog script, so I use PHP includes to make my b2 included on my main page. Using PHP includes will allow you to get rid of iframes and step into the new era. They're quite simple, but you need to read carefully to understand.
  • Most of you probably use a .html or .htm extension when building webpages, but to use PHP includes, you need to use a .php extension. You don't necessarily have to convert your HTML into PHP, you just need to rename your pages to a .php extention.
  • notepad and make a document called blah.php (or whatever you want). Mine includes all of the tutorial links, my layout, my stylesheet, etc. The only thing that needs to go on index.php is the stuff you want to change. The stuff on header.php will always be there. You may use divs, tables, or whatever you want to align your stuff.
  • another notepad and name your document index.php. Copy this code onto that document and save: [?include("blah.php");?] (replace the [ and ] with < and >)
  • Now preview your index.php and you will notice that your header.php is included! Type whatever you want on index.php and save again. You may also include a footer.php, or as many other php files as you want. To do this, just use the same code, replacing the filename with whatever you want. Your header.php include doesn't even have to say header.php if you don't want; it's totally up to you.
  • This tutorial may sound kind of confusing, so if you need any help, feel free to email me.
  • Remixx.net Sites

    remixx.net v 4_3