+--------------------------------------------+
|
|
|
PhP Page Configuration 
|
| ...a tutorial by WhiteXeno
+--------------------------------------------+
// PHP Page Configuration Tutorial.
//
// Tutorial By WhiteXeno (whitexeno@anarchyangels.co.uk)
//
// This tutorial makes your pages able to link from
// www.yourdomain.com/index.php?page=pagename
//
//
// Step One
//
// Copy/Paste this into the blank area of your website content
// area where you want your pages to be. This works sort of like
// an iframe, but it just gets the page content.
//
// PAGEROOT would just be the name of the exsiting file location. i.e. members/roster.php
//
// you can edit the middle bit by adding more lines for more
// pages.
//
//
// PHP Page Configuration Tutorial.
//
// Tutorial By WhiteXeno (whitexeno@anarchyangels.co.uk)
//
// Copyright © WhiteXeno | AnarchyAngels
|
|
|
PhP Page Configuration 
|
| ...a tutorial by WhiteXeno
+--------------------------------------------+
// PHP Page Configuration Tutorial.
//
// Tutorial By WhiteXeno (whitexeno@anarchyangels.co.uk)
//
// This tutorial makes your pages able to link from
// www.yourdomain.com/index.php?page=pagename
//
//
// Step One
//
// Copy/Paste this into the blank area of your website content
// area where you want your pages to be. This works sort of like
// an iframe, but it just gets the page content.
//
Code :
// hide source code
// hide line numbers
// hide source code
// hide line numbers
1 <?php
2 $page1 = $_GET['page'];
3 if ( $page1 == "about" ) { include("about.php"); }
4 // edit the name PAGE and PAGEROOT to show like the text above.
5 elseif ( $page1 == "PAGE" ) { include("PAGEROOT"); }
6 elseif ( $page1 == "PAGE" ) { include("PAGEROOT"); }
7 elseif ( $page1 == "PAGE" ) { include("PAGEROOT"); }
8 // edit home.php to what ever page you want the website to
9 // direct to if the web address is put in wrong.
10 else { include("home.php"); }
11 ?>
12
// PAGEROOT would just be the name of the exsiting file location. i.e. members/roster.php
//
// you can edit the middle bit by adding more lines for more
// pages.
//
//
// PHP Page Configuration Tutorial.
//
// Tutorial By WhiteXeno (whitexeno@anarchyangels.co.uk)
//
// Copyright © WhiteXeno | AnarchyAngels
Donation:If you like our free quality work, make a donation by using Paypal and tell us what you would like to see improved on our site for the next few months. |
|
No comments yet













Page Info












