Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Windows and Linux

Status
Not open for further replies.

randall042299

Programmer
Mar 1, 2005
1
TW
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top