PHP and/or OS related question
Posted: Fri Dec 27, 2002 9:55 am
Hi,
Let's assume the following:
1) Envirronement:
a) php/mysql
b) user website
c) admin website to maintain user website
2) In the Admin section:
I use main categories and subcategories which automatically will generate the menu structure in the user website.
Those (sub)categories have a name (f.e. Home) and a filename (home.php).
The filename creates the hyperlink for the menustructure.
Each (sub)category can have an item. This Item contains the text that is display for the relative (sub)category.
In other words: the Item Home for yje category Home wil display the text when you click on the Home-menu.
Each Item can also contain as many (or none) images as desired. The images are also stored in the database.
3) File Structure:
The file, f.e. home.php contains 3 includes:
header.inc.php
item.inc.php (contains the logic)
footer.inc.php
4) What do I want to achieve ?? The big question !:
In the case above, when I make a new (sub)category f.e. Products. The only thing I can't do from the Admin section is to create the file.
I still have to go to my Explorer and copy a file I call "basic.php" and rename it to "products.php".
There is probabely a way to automize this ... but how ?
I imagine that this will be influenced by the OS one is using.
Some help would be appreciated !
Thanks in advance,
Gijs
Let's assume the following:
1) Envirronement:
a) php/mysql
b) user website
c) admin website to maintain user website
2) In the Admin section:
I use main categories and subcategories which automatically will generate the menu structure in the user website.
Those (sub)categories have a name (f.e. Home) and a filename (home.php).
The filename creates the hyperlink for the menustructure.
Each (sub)category can have an item. This Item contains the text that is display for the relative (sub)category.
In other words: the Item Home for yje category Home wil display the text when you click on the Home-menu.
Each Item can also contain as many (or none) images as desired. The images are also stored in the database.
3) File Structure:
The file, f.e. home.php contains 3 includes:
header.inc.php
item.inc.php (contains the logic)
footer.inc.php
4) What do I want to achieve ?? The big question !:
In the case above, when I make a new (sub)category f.e. Products. The only thing I can't do from the Admin section is to create the file.
I still have to go to my Explorer and copy a file I call "basic.php" and rename it to "products.php".
There is probabely a way to automize this ... but how ?
I imagine that this will be influenced by the OS one is using.
Some help would be appreciated !
Thanks in advance,
Gijs