Hello all,
i have just subscribe to this forum, in hope to find out the answer for this problem: I´m trying to configure a server using includes for generating dynamic pages, runing at apache and php 4.1. So, i´m testing and beginig to php, and have actually three similar php tags that follows:
<?php include ("includes/body.html"?>
The problem is this conde works perfect on the root directory, but when I try to use on subdirectories, if failed. So I try this one:
<?php include ("/includes/body.html"?>
in atempt to make php search the root directory, and imediatly the include directory where are those files. If failed again.
What is the correct synxtax to make this work under subdirectories?
Thanks,
Fernando Wendt
i have just subscribe to this forum, in hope to find out the answer for this problem: I´m trying to configure a server using includes for generating dynamic pages, runing at apache and php 4.1. So, i´m testing and beginig to php, and have actually three similar php tags that follows:
<?php include ("includes/body.html"?>
The problem is this conde works perfect on the root directory, but when I try to use on subdirectories, if failed. So I try this one:
<?php include ("/includes/body.html"?>
in atempt to make php search the root directory, and imediatly the include directory where are those files. If failed again.
What is the correct synxtax to make this work under subdirectories?
Thanks,
Fernando Wendt