hey awl,
i've got a problem with the structure of my site: my site consists of 4 parts: a linkbar left, a linkbar right, the main content in the middle and under all these parts a footer with some text n links.
_____________________
| | | |
| | | |
| | | |
|__|_______________|__|
|_____________________|
Should look like this. When i designed the first version of my site, i had to chose what to do: either use frames for the left and right part and for the footer, or equip all sites with all parts. I have chosen the last solution. The first time, it was no problem for me, to manage the site. But when my site grow, it was a problem: if i had to change just one link in the left or right part or in the footer, i had to apply this change in awl sites. That is some real hard work. No it's even impossible to do that, because my website contains about 50 single sites. I didn't choose frames, because they don't look good. If a user looks for my website via google.de oder any other search engine, it could be possible, that he'll only find a link to a frame. So i had to add a link to the whole frameset. Doesn't look good. But then i had the idea, that i could solve the problem, using php and includes. But there's another problem:
if my site structure is like this:
[x]website root folder
[x]art
[x]images
[x]includes
[x]service
[x]other folder
index.php
The php-include-code for left bar of the the index.php would look like this:
<?php include("includes/left_bar.inc"
; ?>
If there is a 'home'-link in the left bar, the hyperlink would look like this: 'index.php'
But if i include the left_bar.inc to the art.php (in the 'art'-folder) the link won't work, because the browser will browse this paath: '/art/index.php'. The hyperlink had to be '.../index.php'
Do ya know what i mean ?
I know it's awkwardly described but i hope, ya know what i mean. And sorry for my bad english.
Well there is a solution: my site structure had to be 1 level deep. Know what i mean ? The index.php hat to be in a folder,too.
[x]website root folder
[x]art
[x]images
[x]index
index.php
[x]includes
[x]service
[x]other folder
There may not be subfolders, under the art,images,uncludes-folders. Know what i mean ? just 1 level deep structure...
Well and sorry for my bad english....
Hope you have a better solution
i've got a problem with the structure of my site: my site consists of 4 parts: a linkbar left, a linkbar right, the main content in the middle and under all these parts a footer with some text n links.
_____________________
| | | |
| | | |
| | | |
|__|_______________|__|
|_____________________|
Should look like this. When i designed the first version of my site, i had to chose what to do: either use frames for the left and right part and for the footer, or equip all sites with all parts. I have chosen the last solution. The first time, it was no problem for me, to manage the site. But when my site grow, it was a problem: if i had to change just one link in the left or right part or in the footer, i had to apply this change in awl sites. That is some real hard work. No it's even impossible to do that, because my website contains about 50 single sites. I didn't choose frames, because they don't look good. If a user looks for my website via google.de oder any other search engine, it could be possible, that he'll only find a link to a frame. So i had to add a link to the whole frameset. Doesn't look good. But then i had the idea, that i could solve the problem, using php and includes. But there's another problem:
if my site structure is like this:
[x]website root folder
[x]art
[x]images
[x]includes
[x]service
[x]other folder
index.php
The php-include-code for left bar of the the index.php would look like this:
<?php include("includes/left_bar.inc"
If there is a 'home'-link in the left bar, the hyperlink would look like this: 'index.php'
But if i include the left_bar.inc to the art.php (in the 'art'-folder) the link won't work, because the browser will browse this paath: '/art/index.php'. The hyperlink had to be '.../index.php'
Do ya know what i mean ?
I know it's awkwardly described but i hope, ya know what i mean. And sorry for my bad english.
Well there is a solution: my site structure had to be 1 level deep. Know what i mean ? The index.php hat to be in a folder,too.
[x]website root folder
[x]art
[x]images
[x]index
index.php
[x]includes
[x]service
[x]other folder
There may not be subfolders, under the art,images,uncludes-folders. Know what i mean ? just 1 level deep structure...
Well and sorry for my bad english....
Hope you have a better solution