I'm not understanding this. It's screwing up whole site because I'm using a php template.
Supposedly beginning a link with '/' starts me at the root according to every article I've read. However, when I begin with '/' it doesn't work at all.
My variables are located in
public_html/cis130/textfiles/php/variables.php
My template.php file is in
public_html/cis130/textfiles/php/template.php
My index.php file is located at
public_html/cis130/index.php
In my index.php file it reads,
<?php
require('/cis130/textfiles/php/variables.php');
$currentpage = $page[0];
require('/cis130/textfiles/php/template.php');
?>
It doesn't work... I get "Fatal error: require(): Failed opening required '/cis130/final/textfiles/php/variables.php' (include_path='.:/usr/local/php54/pear') in /home/philumpt/public_html/cis130/final/index.php on line 3"
If I use relative links,
textfiles/php/file.php
then it works, but only for index.php. My other pages are located in 'public_html/cis130/textfiles/pages/'. If that's weird, it's what the teacher in my class is making us do.