How do you do this? and what does it do? does it call a new php page called tutorials.php?
How can I add this to my site?
Thanks
Nick
How do you do this? and what does it do? does it call a new php page called tutorials.php?
How can I add this to my site?
Thanks
Nick
That is the index file of a directory. The go=tutorials is passing a variable called go to that page, for example it's the same as
$go = "tutorial";
An index page is the page that is automatically loaded when you call a directory, ie
http://www.myDomain.com/~wicked/
This will call the index.php or index.html file found in the wicked directory.
If your looking for a header redirect do this:
<?php
switch ($go) {
case 'tutorials':
header('Location: http://example.com/tutorials/index.php');
break;
case 'code_gallery':
header('Location: http://example.com/code_gallery/index.php');
break;
}
?>
Kelvin