Back again with another simple php question that I just can't find an answer to!
In my main page, I need to call up a bunch of separate php files. Most are located in the root directory so:
/public_html/file.php
/public_html/file2.php
/public_html/file3.php
The file that is calling up these files is in a directory a few down like:
/public_html/dir1/dir2/content.php
During my test phases, the content file was in the root directory and these commands worked
But now that it's been moved down a few directories, this is no longer working. So, obviously it doesn't work like html.... I figured that out for myself.
Now, there's obviously an easy way to get around this but I can't find it written in "stupid people language" for me to understand.
Can anyone help me?
In my main page, I need to call up a bunch of separate php files. Most are located in the root directory so:
/public_html/file.php
/public_html/file2.php
/public_html/file3.php
The file that is calling up these files is in a directory a few down like:
/public_html/dir1/dir2/content.php
During my test phases, the content file was in the root directory and these commands worked
PHP:
<?php require('file.php'); ?>
<?php require('file2.php'); ?>
<?php require('file3.php'); ?>
But now that it's been moved down a few directories, this is no longer working. So, obviously it doesn't work like html.... I figured that out for myself.
Now, there's obviously an easy way to get around this but I can't find it written in "stupid people language" for me to understand.
Can anyone help me?