Is there any way to determine the file which has called one other. E.g.
one.php
:include('two.php');
...
two.php
:// This file do some stuff
I'm getting a 500 internal server error on two.php
(unexpected end of file in two.php).
However, the file has not an unexpected EOF, so I'm guessing that the issue comes from the file one.php
. The problem is that I don't know which is that file. Any ideas?
I had a similar problem long time ago. The problem was a <?
PHP opening tag.
Solved just replacing <?
with <?php
You dont care about what file is calling the other one, since PHP parses the file by itself, so the problem is in you second file.
Take a look at a few things:
{?>
whith this { ?>
or <?phpSOMETHING
with <?php SOMETHING
short_open_tag
on, change any <?
for <?php
{
and }
and check that everything is closed properly.'
and double "
coutes.If you post the code of your file we can better help you out