Single page website - question about article
Posted: Wed Jun 25, 2003 2:04 pm
Hi everyone!!
I am very new to PHP and I found an article (http://www.evilwalrus.com/articles.php?aid=29) on this site about having all pages on one single webpage.
The article is explained really well and it's just what I was looking for. But I do have one problem and I would be very greatful if someone could help me with this:
I don't understand this:
<?php
ini_set('include_path', '/path/to/your/site');
switch ($_GET['page']) {
default:
include('home.php');
break;
}
?>
What is a path? And how do I specify it in the code? Like I said, I'm really a beginner, so please don't judge me if this is stupid question
Thanks!!
Jennifer
I am very new to PHP and I found an article (http://www.evilwalrus.com/articles.php?aid=29) on this site about having all pages on one single webpage.
The article is explained really well and it's just what I was looking for. But I do have one problem and I would be very greatful if someone could help me with this:
I don't understand this:
<?php
ini_set('include_path', '/path/to/your/site');
switch ($_GET['page']) {
default:
include('home.php');
break;
}
?>
What is a path? And how do I specify it in the code? Like I said, I'm really a beginner, so please don't judge me if this is stupid question
Thanks!!
Jennifer