[thelist] Trouble with PHP Include

Lee Kowalkowski lee.kowalkowski at googlemail.com
Sat Feb 15 01:33:05 CST 2014


On 15 Feb 2014 03:59, "Santilal Parbhu" <santilal at scorpioneng.co.nz> wrote:

> I am having all sorts of trouble with a PHP include.  I have previously
had
> this script working on a hosted server, but for some reason I can't get it
> to work on my Windows XAMPP server.  I have a script with the following:
>
> include "../../functions/commonparameters.php";
>
> include "../../functions/alexbasketballparameters.php";

Those includes sound important, you should use require instead of include.

If you use require, you will get an error message telling you what the
problem is, if they cannot be found, it will say where it was looking for
them.

If there is no error message then perhaps you have a condition in your
logic that isn't being satisfied.

--

Lee


More information about the thelist mailing list