Hi Everyone,
I am building a simple site of some pages consisting of text + some photos + menu on the right side.
I have a file named menu.txt in /home/pistuka/public_html directory.
In order to display the same menu on every page I want to load this txt file to be part of my html pages, displaying the menuitems. I use the php function require as it follows:
some html tags here
<?php
require($DOCUMENT_ROOT . "menu.txt");
?>
some more html tags here
I also tried the following:
some html tags here
<?php
require("/home/pistuka/public_html/menu.txt");
?>
some more html tags here
But it does not appear. Nothing appears where the menu should appear. I suppose that the problem is at permissions or access path.
Please someone tell me what is wrong.
Thank you.
PS: All this had been working for a while on another web hosting service but I had to move to x10hosting.com.
I am building a simple site of some pages consisting of text + some photos + menu on the right side.
I have a file named menu.txt in /home/pistuka/public_html directory.
In order to display the same menu on every page I want to load this txt file to be part of my html pages, displaying the menuitems. I use the php function require as it follows:
some html tags here
<?php
require($DOCUMENT_ROOT . "menu.txt");
?>
some more html tags here
I also tried the following:
some html tags here
<?php
require("/home/pistuka/public_html/menu.txt");
?>
some more html tags here
But it does not appear. Nothing appears where the menu should appear. I suppose that the problem is at permissions or access path.
Please someone tell me what is wrong.
Thank you.
PS: All this had been working for a while on another web hosting service but I had to move to x10hosting.com.