Included PHP code not parsed!?!

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
On a hired webserver, the php code that is in the files included with
'include_once' and 'include' command is not parsed. The php file which
includes these parses just fine.

The included php is also parsed just fine on my test apache.


Request '' on the browser, it runs correctly,
including the file '' into the outputted content.

The file contains html and php, in the following manner:

<img src="img/LogoV<? echo $tmp; ?>.png" border="0" />

On my test server that would be parse to, for example:
<img src="img/LogoV4.png" border="0" />

Thus displaying an image.

BUT, on the webmotel the html comes out without parsing, as:
<img src="img/LogoV<? echo $tmp; ?>.png" border="0" />

:( ???

I would ask the customer service, but I know it will take +10 days to get
the answer.

Any ideas?


Re: Included PHP code not parsed!?!

Y wrote:

Quoted text here. Click to load it

Don't use short_open_tag (<?) or asp-style tags (<%)
Use <?php


Site Timeline