randall042299
Programmer
I've developed my first PHP system in Windows, and I am accustomed to using multiple includes in my page to use a single file as my template and just reference to the other pages as body.
When I ported the pages to a Fedora Red Hat, it doesn't seem to allow multiple (nested) includes.
I actually tested it doing this:
testing.php
******************************************
<?php
include ("testing2.php")
?>
Testing 1 -
******************************************
testing2.php
******************************************
<?php
include ("testing3.php");
?>
Testing 2 -
******************************************
testing3.php
******************************************
Hello World
******************************************
and the output was:
Testing 2 - Testing 1
Why is that? Is there any configuration I need to do to allow nested Includes?
When I ported the pages to a Fedora Red Hat, it doesn't seem to allow multiple (nested) includes.
I actually tested it doing this:
testing.php
******************************************
<?php
include ("testing2.php")
?>
Testing 1 -
******************************************
testing2.php
******************************************
<?php
include ("testing3.php");
?>
Testing 2 -
******************************************
testing3.php
******************************************
Hello World
******************************************
and the output was:
Testing 2 - Testing 1
Why is that? Is there any configuration I need to do to allow nested Includes?