AnswerBun.com

On Ubuntu 16.04 web server, second "<?" gives an error

Ask Ubuntu Asked by Jordi SV on November 26, 2020

In an Ubuntu 16.04 local LAMP web server, running a ‘.php’ script, the first ‘<?’ is correctly treated but the second ‘<?’ (after a first ‘?>’) gives an error suspecting there is an XML instruction inside HTML (which is not allowed). This script run perfectly on a public webserver. All the web is in ‘/var/www/full-domain-name/’

The script starts with:

‘<? php ‘ and a lot of php sentences.
At a certain moment (318 lines later), there is:
‘?>’
‘<html><head><title>Estació terme</title></head>’

‘<body background="full-domain-name/imatges/estacio_terme.jpg">’

‘<table>’

‘ <tr>’

‘ <td>’

<?

‘include "ET_mostra_estacio.html";’

‘//echo "<br>input=".$Inp;’

The result is:

‘<html><head><title>Estació terme</title></head>’

‘<body background="http://localhost/full-domain-name/imatges/estacio_terme.jpg" >’

‘<?’

‘include "ET_mostra_estacio.html";’

‘//echo "<br>input=".$Inp;’

The second ‘?>’ is signaled as error.

I’m sure there is something wrong, but I’m unable to find it. Please help!

Add your own answers!

Related Questions

resolv.conf mismatch netplan configuration

2  Asked on November 26, 2021 by il_mix

     

Blank Nvidia server settings in Kubuntu 20.04

0  Asked on November 26, 2021 by rhitabratakarar

         

Ubuntu 20.04 – Kodi full screen issue

0  Asked on November 26, 2021 by powertoola

         

Cursor problems

0  Asked on November 23, 2021 by james-the-seeker

     

Command not found + white terminal

1  Asked on November 23, 2021 by florentin

   

Unblocking hardware switch WiFi

1  Asked on November 23, 2021

 

Why the Ubuntu 16.04 LTS is till 2020-2022 and not just 2022?

1  Asked on November 23, 2021 by arcticooling

   

VirtualBox wrong screen resolution

1  Asked on November 23, 2021 by edoo

   

Can’t install mysql on Ubuntu 18.04, 404 not found

2  Asked on November 23, 2021 by dank144

 

Kubuntu Alt+F2 broken after 20.04 upgrade

2  Asked on November 23, 2021

   

Random Freezing on Ubuntu MATE 20.04

0  Asked on November 23, 2021 by gabe-roles

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir