Forum Moderators: coopster
However thats a risky think having plain text php on my server, I want to have them so that if someone tries to look at the include file it parses as php [functions = nothing shows up :)].
I include 'functionsfile.php' (same file as the plain text ones but with the different extension) but the file either isnt included or the functions are not being read.
How does changing from .inc to .php for an include, break it? Is it problem with it parsing it wrongly again?
Tried numerous things to get it working, is there something I'm overlooking?
Richard
eelix
The problem is the very same included file with a php extension doesnt work! I havent changed anything but the extension.
My frontend file starts
<?php
/* some comments about the file
some more
++ */
//include functions
include 'http://...../functionsfile.php';
so nothing is before it. Thats whats puzzeling me! :(
but the file either isnt included or the functions are not being read.
I would start here. Determine whether or not the file is being included. Are you trying to include [php.net] from inside a function and losing scope?