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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to