Forum Moderators: coopster
Problem:
<?
include ('something.php');
?>
No include files will load.
There are no errors being displayed on the page.
No errors in the server log.
This is a new install of PHP on Windows, so is the include function found in an /ext dll?
The content of the include file simply does not show up.
This site was originally built on Linux/Apache/PHP config. it worked fine.
I do not have access to that servers php.ini file to compare settings.
Any ideas?
I have plenty of code around the site, it's just the includes that do not show up.
While we are on the topic, what is the significance of <?php. I have written php for years, and have never had trouble that I could link to using the shorthand version.
Thanks for the effort guys, any other ideas?
I have 4 includes on a page. This is not my code but i'll demonstrate what I did.
<?php
include ('functions.php');
include ('header.php');
include ('footer.php');
?>
I added require('functions.php'); but did not remove any of the includes. That would look something like this.
<?php
require('functions.php');
include ('functions.php');
include ('header.php');
include ('footer.php');
?>
All 3 includes began working!
So I said hmn... I'll remove the require('functions.php'); that I just added just to see what happens.
All 3 includes work now! They work across my site with the same code that I had when I wrote my first message.
Anyway, glad you got it working, and Welcome to WebmasterWorld! :)