Re: Newbie frustration!

From: Date: Tue, 23 Jan 2001 21:03:54 +0000
Subject: Re: Newbie frustration!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36237@lists.php.net to get a copy of this message
Hi Mick: You wrote: > Can't the > index.php script pull content from any number of different directories?, > eg: > > index.php?page=Yarns/stuff > index.php?page=Rovings/stuff > index.php/page=dir3/stuff Well the thing is that there is probably a few ways to do this and I thought of the way you just presented to me. I can see a redirect to page=Yarns/stuff. What is stuff by the way? Where do I find this script? My way of doing this (novice way), is I made my index.php and added variables to call the header, navigation, content and footer. The content is loaded with a variable like include "content.html"; not much to it but at this point is useless if I have to do this inside every directory (eg. Yarns/index.php3) add all the variables and also place a content.html in every directory. I can see I'm doing it all wrong now. All I need is to be able to learn how to load everything from a script and how to call the script with a URL to the directory. eg. <? if (Yarns/) { include "header,nav, fetch content,footer"; else "?"; } ?> <a href="http://mysite.com/Yarns/"> Yarns</a> Right! I can see this would not work, because I'm missing some things. Don't worry if you got it wrong, I don't know if you did! I wish it where this simple anyway. Thanks! Gerry Figueroa

« previous php.general (#36237) next »