Hello.
I am developing a template for my site and I have what I hope is a stupid question involving links. But first, let me give you my site's folder architecture.
I have two content pages. root/index.php and news/index.php.
Each of the pages have includes linking to myinclude.php. All three of the pages need to have the same code, excluding the content region of course.
Now then, in the root/index.php file, I link to the includes using
In the news/index.php, I like to the includes using
How can I change that code so that the code to get to the includes is the SAME for both the root/index.php and the news/index.php? Does that make sense? Thanks in advance.
I am developing a template for my site and I have what I hope is a stupid question involving links. But first, let me give you my site's folder architecture.
HTML:
root/
index.php
includes/
myinclude.php
news/
index.php
And so on and so forth.
I have two content pages. root/index.php and news/index.php.
Each of the pages have includes linking to myinclude.php. All three of the pages need to have the same code, excluding the content region of course.
Now then, in the root/index.php file, I link to the includes using
PHP:
<?php include("includes/myinclude.php"); ?>
In the news/index.php, I like to the includes using
PHP:
<?php include("/includes/myinclude.php"); ?>
How can I change that code so that the code to get to the includes is the SAME for both the root/index.php and the news/index.php? Does that make sense? Thanks in advance.