S
S
Sergey Oganezov2015-11-14 15:12:16
PHP
Sergey Oganezov, 2015-11-14 15:12:16

When I divide the page into parts, and then connect it using include, an error occurs. Why?

I have a page that I split into 5 files due to several conditions. When I split this page, then in the first file I get an error

Parse error: syntax error, unexpected $end in ...
and points constantly to the last line.
Then I reduced it to 3 files, the same thing happened.
As a result, it only works when written in one file.
What could be the problem ??

Answer the question

In order to leave comments, you need to log in

3 answer(s)
U
Uzair Izha, 2015-11-14
@Oganez09

Yes, just make them on one page. Forget everything else!

V
Valera Karmanov, 2015-11-14
@motokraft

Give me your files... It's better to download them...

U
Uwe_Boll, 2015-11-14
@Uwe_Boll

for those who like not to read the manual:
something was opened, something was read to the end, but it was not found where it closed
, look for a non-closed curly brace

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question